Guest User

Untitled

a guest
Feb 3rd, 2016
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // this is a map spot that sets user variable based on whether it's observed by any player.
  2. actor LightStreamNode 19001
  3. {
  4. +NOBLOCKMAP
  5. +NOSECTOR
  6. +NOGRAVITY
  7. +DONTSPLASH
  8. +LOOKALLAROUND
  9. RenderStyle None
  10.  
  11. var int user_visible;
  12.  
  13. states
  14. {
  15. Spawn:
  16. TNT1 A 0 A_ClearTarget
  17. TNT1 A 0 A_Look
  18. TNT1 A 1 A_SetUserVar("user_visible", 0) // if A_Look didn't jump to See (and as such set user_visible to 1)
  19. loop
  20.  
  21. See:
  22. TNT1 A 1 A_SetUserVar("user_visible", 1)
  23. goto Spawn
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment