Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spawn monsters
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#6
RE: Spawn monsters

as first check the names and make sure they are the same as in the level editor and as second you have both keys unlock the same doors so when you open one door You open both doors to fix that make it like this:

void OnStart()
{
AddUseItemCallback("", "key_tomb_1", "mansion_1", "UsedKeyOnDoor", true);
SetEntityPlayerInteractCallback("key_tomb_1", "Spawn_Monster", true);
AddUseItemCallback("", "key_torture_chamber_1", "mansion_4", "KeyOnDoor", true);
SetEntityPlayerInteractCallback("key_torture_chamber_1", "Spawn_Monster_two", true);
SetEntityPlayerInteractCallback("note_generic_3", "Spawn_Monster_three", true);
}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlayGuiSound("unlock_door", 0.8f);
RemoveItem("key_tomb_1");
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_4", false, true);
PlayGuiSound("unlock_door", 0.8f);
RemoveItem("key_torture_chamber_1");
}

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
(This post was last modified: 08-04-2012, 09:35 PM by Steve.)
08-04-2012, 09:34 PM
Find


Messages In This Thread
Spawn monsters - by tokugawa1 - 08-04-2012, 08:26 PM
RE: Spawn monsters - by Steve - 08-04-2012, 08:30 PM
RE: Spawn monsters - by tokugawa1 - 08-04-2012, 08:47 PM
RE: Spawn monsters - by Steve - 08-04-2012, 09:06 PM
RE: Spawn monsters - by tokugawa1 - 08-04-2012, 09:22 PM
RE: Spawn monsters - by tokugawa1 - 08-04-2012, 09:50 PM
RE: Spawn monsters - by Steve - 08-04-2012, 09:34 PM
RE: Spawn monsters - by Steve - 08-05-2012, 05:00 PM
RE: Spawn monsters - by tokugawa1 - 08-05-2012, 07:45 PM
RE: Spawn monsters - by Steve - 08-05-2012, 07:46 PM



Users browsing this thread: 5 Guest(s)