Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnStart()
- {
- AddEntityCollideCallback("Player", "ScriptArea_1", "SpidersHatch", false, 1);
- }
- void SpidersHatch(string &in asParent, string &in asChild, int alState)
- {
- int ValueHatch = alState == 1 ? 1 : 0;
- SetLocalVarInt("Hatch", ValueHatch);
- AddDebugMessage("Im waiting to see whether you leave or nope", false);
- AddTimer("hatch_time", 5.0f, "Hatching_Timer");
- }
- void Hatching_Timer(string &in asTimer)
- {
- if(GetLocalVarInt("Hatch") == 1);
- {
- AddDebugMessage("Spiders hatch");
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement