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 (Key to door)
Saren Offline
Member

Posts: 196
Threads: 20
Joined: Jan 2012
Reputation: 1
#5
RE: Script help (Key to door)

(01-30-2012, 11:11 AM)QysteiN Wrote: I created a script:
Anyone can spot whats wrong?

I get error whenever i try to load my custom story:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback(''awesomekey_1'', ''castle_1'', ''UsedKeyOnDoor'', True);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(''castle_1''' , false, true);
PlaySoundAtEntity('' '', ''unlock_door'' , ''castle_1'' , 0, false);
RemoveItem(''awesomekey_1'');
}

////////////////////////////
// Run when leaving map
void OnLeave()
{
Dude what on earth are you doing, if you need help make your own thread......


01-30-2012, 11:14 AM
Find


Messages In This Thread
Script help (Key to door) - by QysteiN - 01-30-2012, 10:27 AM
RE: Script help (Key to door) - by i3670 - 01-30-2012, 10:43 AM
RE: Script help (Key to door) - by flamez3 - 01-30-2012, 10:47 AM
RE: Script help (Key to door) - by QysteiN - 01-30-2012, 11:11 AM
RE: Script help (Key to door) - by Saren - 01-30-2012, 11:14 AM
RE: Script help (Key to door) - by flamez3 - 01-30-2012, 11:15 AM
RE: Script help (Key to door) - by Saren - 01-30-2012, 11:18 AM
RE: Script help (Key to door) - by QysteiN - 01-30-2012, 12:07 PM
RE: Script help (Key to door) - by flamez3 - 01-30-2012, 12:08 PM



Users browsing this thread: 2 Guest(s)