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
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


Messages In This Thread
Script help! 2 - by tezpull666 - 07-17-2013, 07:04 PM
RE: Script help! 2 - by OriginalUsername - 07-17-2013, 07:06 PM
RE: Script help! 2 - by tezpull666 - 07-17-2013, 07:20 PM
RE: Script help! 2 - by Icaab2608 - 07-18-2013, 07:58 AM
RE: Script help! 2 - by PutraenusAlivius - 07-18-2013, 08:07 AM
RE: Script help! 2 - by OriginalUsername - 07-18-2013, 11:02 AM



Users browsing this thread: 1 Guest(s)