Blockland Forums > Help
Double on-activate event?
pecon98:
--- Quote from: Electrk on April 27, 2012, 10:04:45 AM ---You don't need an onRelay or fireRelay event.
--- End quote ---
Correct.
On Onactivate > self > Seteventenabled 0 1 2 (no)
On Onactivate > self > Setlight > player's light
On Onactivate > self > Set eventenabled 3 4 5 (yes)
Off Onactivate > self > Seteventenabled 0 1 2 (yes)
Off Onactivate > self > Setlight > None
Off Onactivate > self > Set eventenabled 3 4 5 (no)
Captn:
On 0 OnAcitvation -> self -> SetLight -> Playerlight
Off 0 OnActivation -> self -> Setlight -> Off
On 0 OnActivation -> self -> toggleEventsEnabled 0 1
Wouldn't that work?
Blocki:
--- Quote from: Captn on April 27, 2012, 10:14:55 AM ---On 0 OnAcitvation -> self -> SetLight -> Playerlight
Off 0 OnActivation -> self -> Setlight -> Off
On 0 OnActivation -> self -> toggleEventsEnabled 0 1
Wouldn't that work?
--- End quote ---
Yep that would
Kniaz:
--- Quote from: Captn on April 27, 2012, 10:14:55 AM ---On 0 OnAcitvation -> self -> SetLight -> Playerlight
Off 0 OnActivation -> self -> Setlight -> Off
On 0 OnActivation -> self -> toggleEventsEnabled 0 1
--- End quote ---
That's the simplest form, and is what I usually use.
Captn:
Ya I looked at the other stuff and was confused. Very complicated for the simple minded.