Advertisement
Guest User

Untitled

a guest
Jul 18th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. void OnStart()
  2. {
  3.  
  4. AddEntityCollideCallback("Player", "ScriptArea_1", "SpidersHatch", false, 1);
  5.  
  6. }
  7.  
  8.  
  9. void SpidersHatch(string &in asParent, string &in asChild, int alState)
  10. {
  11.  
  12.  int ValueHatch = alState == 1 ? 1 : 0;
  13.  
  14.  SetLocalVarInt("Hatch", ValueHatch);
  15.  
  16.  AddDebugMessage("Im waiting to see whether you leave or nope", false);
  17.  
  18.  AddTimer("hatch_time", 5.0f, "Hatching_Timer");
  19.  
  20. }
  21.  
  22. void Hatching_Timer(string &in asTimer)
  23. {  
  24.    
  25.     if(GetLocalVarInt("Hatch") == 1);
  26.     {
  27.    
  28.     AddDebugMessage("Spiders hatch");
  29.     return;
  30.    
  31.    
  32.     }
  33.    
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement