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

(10-01-2011, 11:15 PM)Kyle Wrote: I see your simple problem, which has a simple answer. I'm suprised nobody replied on the answer yet. It appears that some people here on the forums may try to help when they still need to understand it all, if that would be the case.

The answer to your problem:

Change this: void OnEnter()

To this: void OnStart()

Simply saying, if there is no OnStart() function, then the level can't be run.
I changed it to void OnStart() but I'm still getting the "No matching signatures to 'OnStart()'" error.
This is what my script looks like right now:
Quote:////////////////////////////// Run when entering map
void OnStart()
{
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()
{


}


And I'm still getting the " matching signatures to 'AddUseItemCallback(string@&, string@&, string@&, const bool)'" error, I figure i'm missing something, but I just don't know what.

10-02-2011, 05:11 PM
Find


Messages In This Thread
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 A Tricky Carnie - 10-02-2011, 05:11 PM
RE: I need some help with two problems. - by Kyle - 10-02-2011, 05:24 PM



Users browsing this thread: 1 Guest(s)