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
I need some help with two problems.
A Tricky Carnie Offline
Member

Posts: 72
Threads: 15
Joined: Sep 2011
Reputation: 0
#1
I need some help with two problems.

Okay, well my first problem is that I set my script for a level so when the player picks up a key, I want a brute to spawn, but it doesn't seem to work, so this is my script:
Quote:////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("key_4", "locked_door1", "UsedKeyOnDoor", true);
SetEntityCallbackFunc("key_4", "OnPickup");
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("locked_door1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "locked_door1", 0, false);
RemoveItem("key_1");
}
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("servant_brute_1", true);
ShowEnemyPlayerPosition("servant_brute_1");
}

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

}

And my other problem is that for whatever reason, monsters in my custom story slide, and I'd like to know to fix this.

Thanks in advance for any help.

09-30-2011, 07:10 PM
Find


Messages In This Thread
I need some help with two problems. - by A Tricky Carnie - 09-30-2011, 07:10 PM
RE: I need some help with two problems. - by Kyle - 10-01-2011, 11:15 PM
RE: I need some help with two problems. - by Kyle - 10-01-2011, 11:57 PM
RE: I need some help with two problems. - by Kyle - 10-02-2011, 05:24 PM



Users browsing this thread: 3 Guest(s)