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
script issue
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#6
RE: script issue

Hmm... everythign works apart from that script i'm not sure where to use tokens to here my script in full. Please tell me if theres anythign wrong because the script for the door works perfect but the door close and the enemy sees player doesnt work.



////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "StudyKey", "castle_arched01_3", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_arched01_3", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_arched01_3", 0, false);
RemoveItem("StudyKey");
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
}
void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_arched01_2", true, true);
ShowEnemyPlayerPosition("servant_grunt_1");
}
10-03-2010, 07:41 PM
Find


Messages In This Thread
script issue - by LoneWolf - 10-03-2010, 02:32 PM
RE: script issue - by HakePT - 10-03-2010, 03:26 PM
RE: script issue - by LoneWolf - 10-03-2010, 04:09 PM
RE: script issue - by Mofo - 10-03-2010, 04:14 PM
RE: script issue - by LoneWolf - 10-03-2010, 04:20 PM
RE: script issue - by LoneWolf - 10-03-2010, 07:41 PM
RE: script issue - by HakePT - 10-03-2010, 09:46 PM
RE: script issue - by LoneWolf - 10-03-2010, 10:02 PM
RE: script issue - by HakePT - 10-04-2010, 12:49 AM
RE: script issue - by LoneWolf - 10-04-2010, 09:35 AM
RE: script issue - by LoneWolf - 10-04-2010, 07:23 PM



Users browsing this thread: 3 Guest(s)