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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Wooden Board Block destroy script
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: Wooden Board Block destroy script

(05-24-2014, 12:20 PM)MaksoPL Wrote: My script to that:
void OnStart
{
AddUseItemCallback("","ham1","board1","ActivateBrokenBoards",false);
}
void ActivateBrokenBoards(string &in asItem, string &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);
}

And i testing map: main (2,1) : Err :Expected "(".

OnStart needs brackets Smile

PHP Code: (Select All)
void OnStart() 

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


Messages In This Thread
Wooden Board Block destroy script - by MaksoPL - 05-24-2014, 11:20 AM
RE: Wooden Board Block destroy script - by Romulator - 05-24-2014, 12:30 PM



Users browsing this thread: 1 Guest(s)