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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
multiple script problem!!!
Fireintex Offline
Junior Member

Posts: 3
Threads: 0
Joined: Nov 2011
Reputation: 0
#6
RE: multiple script problem!!!

Hey ive got a similar problem and its really starting to piss me off. ive already done those doors and keys correctly and they work fine, but what do i put after this:

void OnStart()
{
AddUseItemCallback("", "torture_1", "castle_1", "KeyOnDoor1", true);
AddUseItemCallback("", "tomb", "mansion_1", "KeyOnDoor2", true);
}

void KeyOnDoor1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "castle_1", 0.0f, true);
RemoveItem("torture_1");
}

void KeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0.0f, true);
RemoveItem("tomb");
}

void OnLeave()

{
}

when i want to put something else in like an area script or another script that isnt to do with keys and doors, if anyone can help ill be so happy >Sad

11-09-2011, 12:01 AM
Find


Messages In This Thread
multiple script problem!!! - by muminmuffin - 02-12-2011, 10:32 PM
RE: multiple script problem!!! - by Urkle - 02-12-2011, 10:40 PM
RE: multiple script problem!!! - by muminmuffin - 02-12-2011, 10:46 PM
RE: multiple script problem!!! - by Oscar House - 02-12-2011, 10:56 PM
RE: multiple script problem!!! - by muminmuffin - 02-12-2011, 11:02 PM
RE: multiple script problem!!! - by Fireintex - 11-09-2011, 12:01 AM
RE: multiple script problem!!! - by Tanshaydar - 11-09-2011, 05:38 AM
RE: multiple script problem!!! - by 5BitHero - 06-14-2013, 09:15 PM



Users browsing this thread: 1 Guest(s)