I have it sorted, thanks again
One more thing though, rather than make a new thread can someone tell me how I can activate a script box within the game? I tried the SetEntityActive command but it seems to activate when the map is loaded.
EDIT:
I tried this script but it wont work, what am I doing wrong?
AddEntityCollideCallback("Player", "ScriptArea_slam", "DoorSlam", true, 1);
void DoorSlam(string &in asParent, string &in asChild, int alState)
{
if(HasItem("key_tomb_rusty_2") == true)
{
SetEntityActive("ScriptArea_slam", true);
AddLocalVarInt("PushDoorVar", 1);
AddPropImpulse("castle_arched01_11", 1, 0, 0, "world");
SetSwingDoorClosed("castle_arched01_11", true, false);
SetSwingDoorLocked("castle_arched01_11", true, false);
}
else
{
SetEntityActive("ScriptArea_slam", false);
}
}