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
#3
RE: I need some help with two problems.

(09-30-2011, 07:29 PM)Lambda Wrote: I think your error is with "SetEntityCallbackFunc("key_4", "OnPickup");", instead, try putting the monster-spawnscript inside AddUseItemCallback. It should look like this:
////////////////////////////// Run when entering map
void OnEnter()
{
AddUseItemCallback("key_4", "locked_door1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("locked_door1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "locked_door1", 0, false);
RemoveItem("key_1");SetEntityActive("servant_brute_1", true);
ShowEnemyPlayerPosition("servant_brute_1");
}

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

}



Or, if you want it when the key is picked up, I'd use SetEntityInteractCallback, and as internal name, the name of the key etc. etc.

And, as for that monsters can slide: Make sure you have pathnodes, or otherwise, I wouldn't know.

Hope that helps!
I did that, and I'm getting this error message:
Quote:ExecuteString (1,1) : ERR : No matching signatures to 'OnStart()' main (4,2) : ERR : No matching signatures to 'AddUseItemCallback(string@&, string@&, string@&, const bool)'



(This post was last modified: 10-01-2011, 10:31 PM by A Tricky Carnie.)
10-01-2011, 10:30 PM
Find


Messages In This Thread
RE: I need some help with two problems. - by A Tricky Carnie - 10-01-2011, 10:30 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: 1 Guest(s)