Page 1 of 1

SP Map Question

Posted: Thu Mar 01, 2007 7:44 pm
by taterSALAD
Ok, I want to make it where when you enter a certain trigger volume, it add a certain weapon to your inventory. Like when your objective takes you to an edge of a cliff, a Sniper Rifle and a pistol automaticly are placed into your inventory. I know the command "(player_add_equipment <unit> <starting_profile> <boolean>)" adds/resets the player's health, shield, and inventory (weapons and grenades) to the named profile. resets if third parameter is true, adds if false. But that only works on units. I want it to be added to the object_list (players). I think this is kind of like when you get the pistol in The Pillar of Autumn map. Can anyone help me?

Posted: Sun Mar 04, 2007 1:46 am
by p0lar_bear
To make the player into a unit:

(unit (list_get (players) 0))

Posted: Sun Mar 04, 2007 8:31 pm
by taterSALAD
THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Posted: Sun Mar 04, 2007 8:31 pm
by taterSALAD
THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (O CRAP DOUBLE POST I CANT DELETE!!! AHHYH)