The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 problem
megsb927 Offline
Junior Member

Posts: 30
Threads: 10
Joined: Feb 2013
Reputation: 0
#1
Script problem

Ok what's wrong here? you go into room 3(this script is for room 3) and castle_2 is locked. Then you go into another map and get the key for it so you can come back and unlock it, but Map 3 won't even load. I need helpConfused



void OnStart()
{
AddUseItemCallback("", "Key3", "castle_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_1", false, false);
PlaySoundAtEntity("", "unlock_door", "castle_1", 0, false);
RemoveItem("Key3");
}

{
AddUseItemCallback("", "Key4", "castle_2", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_2", false, false);
PlaySoundAtEntity("", "unlock_door", "castle_2", 0, false);
RemoveItem("Key4");
}
void OnEnter()
{

}

void OnLeave()
{

}
03-31-2013, 04:45 PM
Find


Messages In This Thread
Script problem - by megsb927 - 03-31-2013, 04:45 PM
RE: Script problem - by Tiger - 03-31-2013, 05:17 PM
RE: Script problem - by megsb927 - 03-31-2013, 05:58 PM
RE: Script problem - by Tiger - 03-31-2013, 06:02 PM
RE: Script problem - by megsb927 - 03-31-2013, 06:09 PM
RE: Script problem - by Tiger - 03-31-2013, 06:17 PM



Users browsing this thread: 1 Guest(s)