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
Amnsesi script. need help
tokugawa1 Offline
Junior Member

Posts: 37
Threads: 8
Joined: Aug 2012
Reputation: 0
#5
RE: Amnsesi script. need help

(08-01-2012, 08:12 PM)Steve Wrote:
(08-01-2012, 08:01 PM)tokugawa1 Wrote:
(08-01-2012, 07:36 PM)ZereboO Wrote: like this?

void OnStart()
{
SetEntityPlayerInteractCallback("monster_tinderbox", "Spawn_Monster", true);

AddUseItemCallback("", "key_1", "door_1","UsedKeyOnDoor", true);
}
yes like that so to make it complete:
void OnStart()
{
AddUseItemCallback("", "key_1", "door_1", "UsedKeyOnDoor", true);
SetEntityPlayerInteractCallback("monster_tinderbox", "Spawn_Monster", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0.0f, false);
RemoveItem("key_1");
}

void Spawn_Monster(string &in entity)
{
SetEntityActive("servant_brute_1", true);
}

void OnEnter()
{

}
ok the CS works but when i try to use the key on the door it says "Cannot use this item this way!"
08-01-2012, 08:17 PM
Find


Messages In This Thread
Amnsesi script. need help - by tokugawa1 - 08-01-2012, 07:21 PM
RE: Amnsesi script. need help - by Lizard - 08-01-2012, 07:36 PM
RE: Amnsesi script. need help - by tokugawa1 - 08-01-2012, 08:01 PM
RE: Amnsesi script. need help - by Steve - 08-01-2012, 08:12 PM
RE: Amnsesi script. need help - by tokugawa1 - 08-01-2012, 08:17 PM
RE: Amnsesi script. need help - by Lizard - 08-01-2012, 08:32 PM
RE: Amnsesi script. need help - by tokugawa1 - 08-01-2012, 08:36 PM
RE: Amnsesi script. need help - by Seragath - 08-02-2012, 02:44 PM
RE: Amnsesi script. need help - by tokugawa1 - 08-02-2012, 03:44 PM



Users browsing this thread: 1 Guest(s)