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
Script help! 2
tezpull666 Away
Banned

Posts: 286
Threads: 15
Joined: May 2013
#1
Script help! 2

I did all the scripting:
PHP Code: (Select All)
OnStart()
{
    
AddUseItemCallback("""key_study_1""level_wood_1""FUNCTION"true);
}

OnEnter()
{

}

OnLeave()
{

}

void FUNCTION(string &in asItemstring &in asEntity)
{
    
SetLevelDoorLocked("level_wood_1"false);
    
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
    
RemoveItem("key_study_1");


But it said this:
Help2
(This post was last modified: 07-17-2013, 07:22 PM by tezpull666.)
07-17-2013, 07:04 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#2
RE: Script help! 2

You forgot to add void before OnStart. So it should be
void OnStart()
{

}

Same for the OnLeave and OnEnter
07-17-2013, 07:06 PM
Find
tezpull666 Away
Banned

Posts: 286
Threads: 15
Joined: May 2013
#3
RE: Script help! 2

(07-17-2013, 07:06 PM)Smoke Wrote: You forgot to add void before OnStart. So it should be
void OnStart()
{

}

Same for the OnLeave and OnEnter
Thanks!
07-17-2013, 07:20 PM
Find
Icaab2608 Offline
Member

Posts: 85
Threads: 37
Joined: Jul 2013
Reputation: 0
#4
RE: Script help! 2

(07-17-2013, 07:04 PM)Mike1265 Wrote: I did all the scripting:
PHP Code: (Select All)
OnStart()
{
    
AddUseItemCallback("""key_study_1""level_wood_1""FUNCTION"true);
}

OnEnter()
{

}

OnLeave()
{

}

void FUNCTION(string &in asItemstring &in asEntity)
{
    
SetLevelDoorLocked("level_wood_1"false);
    
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
    
RemoveItem("key_study_1");


But it said this:
Help2
PHP Code: (Select All)
OnStart()
{
    
AddUseItemCallback("""key_study_1""level_wood_1""FUNCTION"true);
}
void FUNCTION(string &in asItemstring &in asEntity)
{
    
SetLevelDoorLocked("level_wood_1"false);
    
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
    
RemoveItem("key_study_1");
}
OnEnter()
{

}

OnLeave()
{


07-18-2013, 07:58 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#5
RE: Script help! 2

I love that none of you actually give a shit about OnEnter() and OnLeave().

"Veni, vidi, vici."
"I came, I saw, I conquered."
07-18-2013, 08:07 AM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#6
RE: Script help! 2

(07-18-2013, 08:07 AM)JustAnotherPlayer Wrote: I love that none of you actually give a shit about OnEnter() and OnLeave().

He doesn't use them atm, right? Also, he might understand what they're doing and doesn't use them at all.
07-18-2013, 11:02 AM
Find




Users browsing this thread: 1 Guest(s)