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
REsolved
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#8
RE: Script help!!!!!

(07-20-2012, 11:31 PM)zecuro Wrote: like this ????

No. Like this:

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""explode_scare""Explode"true1);
AddUseItemCallback("""key_1""mansion_3""FUNCTION"true);
}

void FUNCTION(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door"asEntity0false);
RemoveItem(asItem);
}

void Explode(string &in asParentstring &in asChildint alState)
{
SetPropHealth("pot_explode"0);
}

void OnEnter()
{
AddEntityCollideCallback("Player""bang""func_slam"true1);
}

void OnLeave()
{
}

void func_slam(string &in asParentstring &in asChildint alState)
{
SetSwingDoorClosed("mansion_2"truetrue);
PlaySoundAtEntity("""react_breath_slow.snt""Player"0false);
PlaySoundAtEntity("""react_scare""Player"0false);
PlaySoundAtEntity("""close_door.snt""Player"0false);
GiveSanityDamage(5.0ftrue);


Tutorials: From Noob to Pro
07-21-2012, 12:17 AM
Website Find


Messages In This Thread
REsolved - by zecuro - 07-20-2012, 06:58 PM
RE: Script help!!!!! - by Traggey - 07-20-2012, 07:15 PM
RE: Script help!!!!! - by Steve - 07-20-2012, 07:59 PM
RE: Script help!!!!! - by zecuro - 07-20-2012, 08:32 PM
RE: Script help!!!!! - by Your Computer - 07-20-2012, 09:13 PM
RE: Script help!!!!! - by zecuro - 07-20-2012, 09:23 PM
RE: Script help!!!!! - by zecuro - 07-20-2012, 11:31 PM
RE: Script help!!!!! - by Your Computer - 07-21-2012, 12:17 AM



Users browsing this thread: 1 Guest(s)