PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: sigh... a fatal error.. again!
(09-10-2013, 01:39 PM)HiagHarlon Wrote: (07-18-2011, 02:40 PM)Roenlond Wrote: You need three columns for setswingdoorlocked, not just two. Add a true/false to each of them if you wish to use effects when it happens.
Hi I have a similar problem to the one you solved for another person, where he was trying to lock and unlock a cabinet door i am trying to simpley unlock a level door on my map with a key, can you please help i get the same error!
here is the code
void OnStart()
{
AddUseItemCallBack("", "Key_1", "Lev_1", "FUNCTION", true);
}
void OnEnter()
{
}
void OnLeave()
{
}
void FUNCTION(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("Lev_1", false);
RemoveItem("Key_1");
}
You had the wrong callback syntax. The [void FUNCTION( string &in asItem, string &in asEntity)] part was wrong.
The text in the bolded sentence is the callback syntax.
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
09-10-2013, 03:22 PM |
|