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
REsolved
zecuro Offline
Member

Posts: 162
Threads: 33
Joined: Jul 2011
Reputation: 3
#1
REsolved

hi guys
have a bit of problem with my hps file here......they tell me something wrong with it
void OnStart()
{
AddUseItemCallback("", "key_1", "mansion_3", "FUNCTION", true);
}
void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door", asEntity, 0, false);
RemoveItem(asItem);
}
void OnStart()
{
AddEntityCollideCallback("Player", "explode_scare", "Explode", true, 1);
}


void Explode(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("pot_explode", 0);
}


void OnEnter()
{
}


void OnLeave()
{
void OnEnter()

{
AddEntityCollideCallback("Player", "bang", "func_slam", true, 1);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_2", true, true);

PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);

GiveSanityDamage(5.0f, true);
}
(This post was last modified: 07-21-2012, 12:52 AM by zecuro.)
07-20-2012, 06:58 PM
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)