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 Help PLEASE HELP KEY DOESNT WORK
Hartmann Offline
Member

Posts: 52
Threads: 18
Joined: Jun 2012
Reputation: 0
#1
PLEASE HELP KEY DOESNT WORK

Hey i have some problems with my custom story. the key wont open the door, this is my script


////////////////////////////
// Run first time starting map

void OnStart()
{
AddUseItemCallback("", "key_1", "mansion_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, true);
}


////////////////////////////
// Run when leaving map
void OnLeave()
{

}
(This post was last modified: 06-17-2012, 08:37 PM by Hartmann.)
06-17-2012, 08:37 PM
Find


Messages In This Thread
PLEASE HELP KEY DOESNT WORK - by Hartmann - 06-17-2012, 08:37 PM
RE: PLEASE HELP KEY DOESNT WORK - by GrAVit - 06-17-2012, 08:51 PM
RE: PLEASE HELP KEY DOESNT WORK - by Hartmann - 06-18-2012, 06:35 AM
RE: PLEASE HELP KEY DOESNT WORK - by Dutton - 06-18-2012, 07:10 AM



Users browsing this thread: 2 Guest(s)