(05-15-2012, 07:18 AM)SilentStriker Wrote: Either I'm just a bit slow today or I don't really understand what you meen (my nativ language is swedish)
I know what everything in the code does but I guess I'm not showing it properly?
Oh, I missed that you commented the code and removed the asTimer. Still, I've underlined some mysterious things for you:
//Makes it able for the Crowbar_joint to collide with the area in my case the area is named
BreakDoor
//Calls a timer that places the crowbar in the door frame.
AddTimer(asEntity, 0.2, "TimerSwitch
Shovel");
//Remove callback incase player never touched door
SetEntityPlayerInteractCallback("NAMEOFDOOR", "", true);
SetEntityPlayerInteractCallback("NAMEOFTHEAREA", "", true);
}
//The timer we called before
void TimerSwitch
Shovel(string &in asTimer)
{
//Plays the sound of the player putting the crowbar in the doorframe
PlaySoundAtEntity("attach
shovel","puzzle_place_jar.snt", "Player", 0, false);
//Sets your
crowbar_dyn active
SetEntityActive("NAMEOFYOURCROWBAR_
DYN", true);