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
#8
RE: script issue

(10-03-2010, 09:46 PM)HakePT Wrote: AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);

Shouldn't this part be under the OnStart()?

If not you functions are dependent and may be causing your problem.

Okay this is what i changed it all to now - (i will try it out tomorrow but if anyone knows how to get all my scripting to work then please tell me, my door+key works but i dont want to mess aroudn more and end up with nothing working).

////////////////////////////
// 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()
{
}
10-03-2010, 10:02 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: 1 Guest(s)