woodstock 10 Posted September 13, 2015 So, I'm attempting to trigger the delivery of a loaded backpack, generated on startup, to a player, on a trigger. Using the "usual" syntax in the trigger onact, I can setpos my player to the backpack, but not the backpack (or any other item, vehicle, etc) to the player ( getPos). What gives? Share this post Link to post Share on other sites
Ranwer135 308 Posted September 14, 2015 _backpack setPosATL (getPosWorld player_name) If you are doing this for MP, give your player a name such as "player_name". Else if its SP, replace player_name with just player. Share this post Link to post Share on other sites
woodstock 10 Posted September 14, 2015 And what's the right way to define which backpack? I'm setting up for a whole squad with unique packs for each player. Thanks! Share this post Link to post Share on other sites
woodstock 10 Posted September 14, 2015 Retuning a "Local variable in global space" error. _MedicPack setPosATL (getPosWorld player_ReconMedic); hint "Trigger" If I remove the first underscore, there's no error but nothing happens. If I transpose the units, the player gets transported to a seemingly random location, nowhere near the backpack. This is how I got my player to his backpack in testing: ReconMedic setpos (MedicPack modelToWorld [0,0,0]); hint "TRIGGER"; Again, this is just in a trigger action, not a script. I'm afraid I'm very new to all of it. Share this post Link to post Share on other sites
woodstock 10 Posted September 14, 2015 Solved here: http://www.armaholic.com/forums.php?m=posts&q=32651&n=last#bottom Thanks! Share this post Link to post Share on other sites
killzone_kid 1329 Posted September 14, 2015 Solved here: http://www.armaholic.com/forums.php?m=posts&q=32651&n=last#bottom Thanks! Since 1.50 you can use objectParent https://community.bistudio.com/wiki/objectParent Share this post Link to post Share on other sites
Joe98 91 Posted September 14, 2015 Give each backpack a name backpack3 setpos getpos blue3 . Share this post Link to post Share on other sites