Spirit of Half-Life and on/off Created 8 years ago2016-02-03 22:53:42 UTC by Loulimi Loulimi

Created 8 years ago2016-02-03 22:53:42 UTC by Loulimi Loulimi

Posted 8 years ago2016-02-03 22:53:42 UTC Post #328648
Hello everyone!

I'm having a hard time trying to understand what means off and on for SOHL 1.8.

I created two button_target targeting respectively mm_on and mm_off. mm_on and mm_off are two multi_manager which target 2 trigger_relay: tr_on and tr_off. tr_on and tr_off target both the same light and train with respectively ON and OFF in "trigger to send".
However:
  • the button that targets mm_off does nothing apart from turning the train on
  • the button that targets mm_on switches on and off the light, but ordy turns the train on.
Any idea what's going on? O_o

Cheers!
Posted 8 years ago2016-02-04 23:28:35 UTC Post #328667
Here's the solution if anyone's looking for it as I was: SOHL does not support Trigger State (it means, calling an entity with either the parameter on or off). Instead, you have to call your entity normally, adding potentially + (equivalent of on) or - (equivalent of off) at the beginning of the called entity named in the target field of the calling entity.
For exemple, func_button targets +train.
Posted 8 years ago2016-02-04 23:29:11 UTC Post #328668
neat!
Tetsu0 Tetsu0Positive Chaos
You must be logged in to post a response.