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 General Discussion »Door open with control panel script wont work.

Author Topic: Door open with control panel script wont work. (4 messages, Page 1 of 1)
Moderators: Dennis

sos
Joined: Aug 8, 2008

Getting my legal team, brb


Posted: Mar 6, 2010 04:48 PM    Msg. 1 of 4       
[gate line 1] the value of this expression (in a slot) can never be used.: door
[gate1 line 1] the value of this expression (in a slot) can never be used.: door1
this left parenthesis is unmatched.: (script startup open door 1
this left parenthesis is unmatched.: (script startup open door


I got that in sapien when i put the scripts in.
These are the scripts i put in:


(script startup open door
(sleep_until ( = (device_get_position "press!") 1 ) )
(device_set_power gate 1)
)

Then in a seperrate script (as there are 2 panels,1 door):

(script startup open door1
(sleep_until ( = (device_get_position "press!2") 1 ) )
(device_set_power gate 1)
)



Can someone Please correct my mistake?


Codebrain
Joined: Sep 29, 2007

/meme


Posted: Mar 7, 2010 03:25 PM    Msg. 2 of 4       
Open and Door have to be one word.

Sapien attempts to parse the script thinking that "open" is the name, while door and door1 are considered other variables.

Simply connect both "open door" to "open_door" and "open door1" into "open_door1".


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Mar 7, 2010 05:07 PM    Msg. 3 of 4       
Or use quotes around the name.


sos
Joined: Aug 8, 2008

Getting my legal team, brb


Posted: Mar 8, 2010 05:10 PM    Msg. 4 of 4       
OK, thanks guys.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 4:33 PM 187 ms.
A Halo Maps Website