Results 1 to 4 of 4
  1. #1
    kuyakyloo's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    in my house
    Posts
    59
    Reputation
    10
    Thanks
    6
    My Mood
    Sleepy

    How to attach something to player?

    Is it possible to create a care package in the gsc thing and make it follow a player and face where the player's facing? If you can, how?

  2. #2
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    Code:
    self attach("com_plasticcase_friendly", "j_head", false);
    Last edited by jimmynguyen3030; 01-28-2011 at 08:28 PM.
    If I Helped You, Plz Thanks.
    It Would Help Alot

    What Do You Do For A Living?
    I Mostly Own Noobs With The AK-47 With Silencer
    What's That?
    (Turns To Friend)
    HAHAHA Noob!!!!!!

  3. The Following User Says Thank You to jimmynguyen3030 For This Useful Post:

    kuyakyloo (01-28-2011)

  4. #3
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    What Jimmy said, makes a care package attach to your head ;P

    If you rather want a care package that moves to you, then you will need to do somenthing like this
    (It's a thread, yes)

    Code:
    Carepackagethatfollows()
    {
    PedoCarePackage = spawn( "script_model", self.origin ); //change self.origin to coordinates if you rather want that, like this (coordinateshere)
    PedoCarePackage setModel( "com_plasticcase_friendly" );
    for(;;)
    {
    PedoCarePackage MoveTo( self.origin, 0.05);
    wait 0.05;
    }
    }
    Dunno if it works xD, try it...

  5. #4
    kuyakyloo's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    in my house
    Posts
    59
    Reputation
    10
    Thanks
    6
    My Mood
    Sleepy
    If you attach it to your head or origin will using that self hide() thing or something like that make it stop?