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 Script Error
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: Script Error

In that case, try this:

PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("","ham1","board1","ActivateBrokenBoards",false);
AddEntityCollideCallback("Player","grunt_script1","Hallucination",true,1);
}

void ActivateBrokenBoards(string &in asItemstring &in asEntity)
{
SetEntityActive("board1",false);
SetEntityActive("boardb1",true);
RemoveItem("Ham1");
GiveSanityBoostSmall();
CreateParticleSystemAtEntity("","ps_cog_stone.ps","BoardParticles"false);
CreateParticleSystemAtEntity("","ps_break_mansionbase_wall.ps","BoardParticles",false);
PlaySoundAtEntity("","player_crouch","Player",0.0f,false); 
PlaySoundAtEntity("","break_wood.snt","Player",0.0f,true);
}

void Hallucination(string &in asParentstring &in asChildint alState)
{
SetEntityActive("haluc1",true);
ShowEnemyPlayerPosition("haluc1");


Discord: Romulator#0001
[Image: 3f6f01a904.png]
05-24-2014, 01:27 PM
Find


Messages In This Thread
Script Error - by MaksoPL - 05-24-2014, 01:11 PM
RE: Script Error - by Romulator - 05-24-2014, 01:17 PM
RE: Script Error - by MaksoPL - 05-24-2014, 01:20 PM
RE: Script Error - by Romulator - 05-24-2014, 01:27 PM
RE: Script Error - by MaksoPL - 05-24-2014, 01:29 PM
RE: Script Error - by DnALANGE - 05-24-2014, 02:13 PM



Users browsing this thread: 1 Guest(s)