Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // this is a map spot that sets user variable based on whether it's observed by any player.
- actor LightStreamNode 19001
- {
- +NOBLOCKMAP
- +NOSECTOR
- +NOGRAVITY
- +DONTSPLASH
- +LOOKALLAROUND
- RenderStyle None
- var int user_visible;
- states
- {
- Spawn:
- TNT1 A 0 A_ClearTarget
- TNT1 A 0 A_Look
- TNT1 A 1 A_SetUserVar("user_visible", 0) // if A_Look didn't jump to See (and as such set user_visible to 1)
- loop
- See:
- TNT1 A 1 A_SetUserVar("user_visible", 1)
- goto Spawn
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment