The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help cheap scare
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#1
cheap scare

so i put in a cheap scare into my game bassically you walk into the room no one on the chair get close to the chair naked man shows up this is my script

AddEntityCollideCallback("Player", "ScriptArea_3", "CheapScare", true, 1);
AddEntityCollideCallback("corpse_bloody_2", "ScriptArea_3", "Sound", true, 1);
}

void CheapScare(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("corpse_bloody_2", true);
GiveSanityDamage(5.0f, true);
}

void Sound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "24_iron_maiden.snt", "ScriptArea_3", 0, false);
}



this script is working. so what would i add to get rid off him after about 1 or 2 seconds?
04-03-2012, 01:22 AM
Find


Messages In This Thread
cheap scare - by zombiehacker595 - 04-03-2012, 01:22 AM
RE: cheap scare - by Obliviator27 - 04-03-2012, 01:38 AM
RE: cheap scare - by Xanthos - 04-03-2012, 05:21 PM
RE: cheap scare - by JetlinerX - 04-04-2012, 01:55 AM
RE: cheap scare - by zombiehacker595 - 04-04-2012, 03:29 AM
RE: cheap scare - by Xanthos - 04-04-2012, 05:06 AM



Users browsing this thread: 1 Guest(s)