Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Location
    Tellus
    Posts
    202

    attachtobone...how

    Hey. I have a class who have no other purpose than to show a corona (are going to use it with a flashlight), and now i want to make it connect to the weapon or weapontip bone. After searching trough the code (using undox, who i recently discovered made the job of learning uscript much easier), i found a function called attachbone.

    In all the other code, they wrote AttachToBone(theClass, 'bone_weapon'), without any reference to which pawn to connect to...
    My corona class are child of 'Effects', and are spawned from my 'equipment_flashlight'.

    Also tried to 'SetLocation(getbonecoords(and something))' each tick, but that was coords, and needed vectors...

    Any knowledge out there how i should really do it?
    ------------------------------------------
    Can somebody lend me a hitch off this planet?

  2. #2
    Join Date
    Feb 2003
    Location
    Salem, Oregon
    Posts
    792
    AttachToBone works on 'self'

    So if you want to have the pawn Other attach Hamburger to 'rhand', it would be
    Code:
    Other.AttachToBone(Hamburger,'rhand');

    Also, with regards to GetBoneCoords... Coord.Orgin is the vector location of the coord.
    Last edited by EvilDrWong; 11-01-2004 at 01:11 PM.
    AIM:EvilDrWongPhD | ICQ:26065027
    You know you want to baby, I can see it in your eyes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •