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 Script Error
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Script Error

(03-30-2014, 08:20 PM)MaksoPL Wrote: {
AddUseItemCallback("","key1","door1","Door",true);
}

This is your problem. Smile To fix it, simply move it to OnStart().

Try this!

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player","alexander1","Message1",true,1);
AddUseItemCallback("","key1","door1","Door",true);
}

void Message1(string &in asChildstring &in asParentint alState)
{
SetMessage("Messages","Alexander",10); 
}

void Door (string &in asItemstring &in asEntity)
{
SetSwingDoorLocked("door1",false,true);
PlaySoundAtEntity("","unlock_door","door1",1,false)


Discord: Romulator#0001
[Image: 3f6f01a904.png]
03-30-2014, 09:04 PM
Find


Messages In This Thread
Script Error - by MaksoPL - 03-30-2014, 08:20 PM
RE: Script Error - by Romulator - 03-30-2014, 09:04 PM
RE: Script Error - by MaksoPL - 03-30-2014, 09:07 PM
RE: Script Error - by Neelke - 03-30-2014, 09:21 PM
RE: Script Error - by 7heDubz - 03-30-2014, 10:26 PM



Users browsing this thread: 1 Guest(s)