A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Script error

Author Topic: Script error (4 messages, Page 1 of 1)
Moderators: Dennis

forrestkeller1
Joined: Nov 3, 2007

What? Why am I still here?


Posted: Jun 24, 2011 02:30 AM    Msg. 1 of 4       
I keep getting this script error which is unknown to me on how to fix

06.24.11 01:27:30 [the_great_battle_of_asis_v3_pb3 line 25] this is not a valid object name.: player0)) true)
06.24.11 01:27:30 recompiling scripts after scenarios were merged.
06.24.11 01:27:30 [the_great_battle_of_asis_v3_pb3 line 23] this left parenthesis is unmatched.: (begin\

Here is the script

(script continuous hud_health_crack
(begin
(hud_show_health false)
(if (and (unit_get_health player0)) true)
(begin
(hud_show_health true)
)
)
)
)
Edited by forrestkeller1 on Jun 24, 2011 at 02:30 AM


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Jun 24, 2011 04:41 AM    Msg. 2 of 4       
Unless you have a unit named player0, that doesn't actively refer to anything. To refer to the player in a single player game (list_get (players) 0) or simply (players) would suffice:

(if (unit_get_health (players)) true)

If you're trying to refer to all 16 players in a multiplayer game, then it actively becomes more complicated.


forrestkeller1
Joined: Nov 3, 2007

What? Why am I still here?


Posted: Jun 24, 2011 05:21 AM    Msg. 3 of 4       
Quote: --- Original message by: Polamee
Unless you have a unit named player0, that doesn't actively refer to anything. To refer to the player in a single player game (list_get (players) 0) or simply (players) would suffice:

(if (unit_get_health (players)) true)

If you're trying to refer to all 16 players in a multiplayer game, then it actively becomes more complicated.


Using (list_get (players) 0) and (players) will not work for that calls a object list and the script requires a unit


aPerson
Joined: Jun 11, 2011


Posted: Jun 29, 2011 06:33 PM    Msg. 4 of 4       
(unit (list_get (players) 1) ) will work where the unit goes.

Hope this helps

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 7:03 AM 453 ms.
A Halo Maps Website