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
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#3
RE: Wooden Board Block destroy script

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 "(".
(This post was last modified: 05-24-2014, 12:25 PM by MaksoPL.)
05-24-2014, 12:20 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 MaksoPL - 05-24-2014, 12:20 PM



Users browsing this thread: 2 Guest(s)