
Stevedoggen
Joined: Jan 14, 2013
#Byf4Lyf
|
Posted: Apr 25, 2013 03:33 AM
Msg. 1 of 4
(player_add_equipment <unit> <starting_profile> <boolean>)
That's what the Halo bible says, yet after sticking
(unit (get_list (players) 0)
in, and then using player0 in place of <unit>, I get:
this is not a valid object name.: player0
Would I need a global at the top saying something or what? What did I do wrong, and how would I go about getting player0 into the <unit> part and it working?
Sorry I just realised this was meant to be in technical/map design. Edited by Stevedoggen on Apr 25, 2013 at 03:36 AM
|
|
|

Stevedoggen
Joined: Jan 14, 2013
#Byf4Lyf
|
Posted: Apr 25, 2013 03:50 AM
Msg. 2 of 4
TBH, I just wanted to know what to write into the command to get it to work, and (unit (list_get (players) 0)) works. I assumed that by writing (unit (get_list (players) 0)) once meant that all I had to do was write player0 and it would refer to it from then onward.
Thanks.
|
|
|

Stevedoggen
Joined: Jan 14, 2013
#Byf4Lyf
|
Posted: Apr 25, 2013 12:26 PM
Msg. 3 of 4
my main issue was that i got half of both of those idea mixed up. that and the fact I was writing get_list instead of list_get. Kinda important.
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Apr 25, 2013 01:37 PM
Msg. 4 of 4
Actually, look at what you wrote for the player0, it returns void.. that means it doesn't do anything. you want to replace void with unit. And when calling a static script, you encase it in (), so your 'UNIQUENAME' example would be (UNIQUENAME) when called by other scripts. (if your gonna teach people to script, teach them correctly)
|
|
|