Kyle
Posting Freak
Posts: 911
Threads: 36
Joined: Sep 2010
Reputation:
7
|
RE: Another Scripting Problem...
So it should be like this?
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Mansion Key", "MansionDoor", "UsedKeyOnDoor", true);
}
void SetEntityActive(servant_grunt, true);
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("MansionDoor", false, true);
PlaySoundAtEntity("", "unlock_door" , "MansionDoor", 0, false);
RemoveItem("Mansion Key");
}
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "CollideRoomTwo" , true, 1);
void CollideFunction(string &in asParent, string &in asChild, int alState)
}
void SetEntityActive(servant_grunt, true);
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
|
|
10-10-2010, 05:54 PM |
|