I have a dump questions and I don't if it is a script question or not.
I would like to be able to use EDDI to tell voice attack if the Ships lights are on or not
I currently just use a small integer compare and set the flag at the beginning manually and toggle the flag with the lights on and lights off command.
I see EDDI has a {BOOL:Status lights on} in the wiki that says a boolean value indicating whether the vehicle's external lights are active
So how would I use that to se the a boolean value in voice attack then use that as the True/False flag so "Lights on" for instance only turns the lights on if they are off.
My current Voice attack set up is
lights on said:
Begin Small Integer Compare : [LIGHTS] Equals 0
Press L key and hold for 0.1 seconds and release
Pause 0.1 seconds
Set small int (condition) [LIGHTS] value to 1
End Condition
&
lights off said:
Begin Small Integer Compare : [LIGHTS] Equals 1
Press L key and hold for 0.1 seconds and release
Pause 0.1 seconds
Set small int (condition) [LIGHTS] value to 0
End Condition
With Small Integer [LIGHTS] set to 0 in a Ship start up command
Sorry if this is the wrong thread or not actually doable
I have no experience with this and so have been struggling reading wikis to begin with to figure out what a boolean was.
I pictured it as something like
lights off said:
Begin {BOOL : Status lights on} Equals False
Press L key and hold for 0.1 seconds and release
Pause 0.1 seconds
End Condition
And
lights off said:
Begin {BOOL : Status lights on} Equals True
Press L key and hold for 0.1 seconds and release
Pause 0.1 seconds
End Condition
But cannot figure out how to enter that if it even was valid.
Note: spaces added as {BOOL:Status lights on} has a smiley in it
Any help much appreciated
Thanks