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
HakePT Offline
Junior Member

Posts: 49
Threads: 1
Joined: Sep 2010
Reputation: 0
#9
RE: script issue

(10-03-2010, 10:02 PM)LoneWolf Wrote: ////////////////////////////
// Run first time starting map
void OnStart()
{
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");
}
{
AddUseItemCallback("", "StudyKey", "castle_arched01_3", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
AddUseItemCallback("", "StudyKey", "castle_arched01_3", "UsedKeyOnDoor", true);
}
void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_arched01_2", true, true);
ShowEnemyPlayerPosition("servant_grunt_1");
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
*(shouldn't there be code here unlocking the door? your door unlock won't work like this)*
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
10-04-2010, 12:49 AM
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: 1 Guest(s)