Advertisement
gribbleshnibit8

CrGiantMantisNymphScript

Jul 26th, 2015
755
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. scn CrGiantMantisNymphScript
  2.  
  3. ; Added conditional code to reduce the cost of running the script on every frame. Part of a game-wide revision of scripts - Jorge 03/14/10
  4.  
  5. int distance
  6. Short Alive
  7.  
  8. Begin OnLoad
  9. If GetDead != 1
  10. Set Alive to 1
  11. Endif
  12. End
  13.  
  14.  
  15. begin OnDeath
  16.  
  17. ;Disable 1
  18. ;MarkForDelete
  19.  
  20. end
  21.  
  22. begin GameMode
  23.  
  24. If Alive != 1
  25. Return
  26. Elseif Alive == 1
  27. If Player.IsInInterior != 1
  28. Return
  29. Else
  30. if GetDistance player < 50
  31. ; Squish the nymph
  32. Kill player
  33. Set Alive to 0
  34. endif
  35. Endif
  36. Endif
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement