Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need some help with two problems.
Author Message
A Tricky Carnie Offline
Member

Posts: 75
Joined: Sep 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
I need some help with two problems. - A Tricky Carnie - 09-30-2011 07:10 PM



User(s) browsing this thread: 1 Guest(s)