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
help script stuff sorta
Romulator Offline
Not Tech Support ;-)

Posts: 3,626
Threads: 62
Joined: Jan 2013
Reputation: 195
#10
RE: help script stuff sorta

BEFORE trying the scripting suggestion below in the spoiler...

Your script has opening brackets instead of braces in the OnStart(), OnEnter() and OnLeave() routines. Anytime you make events occur within a routine, you'll need braces, and not brackets. Try this Smile
PHP Code: (Select All)
void OnStart()
{

}

void OnEnter()
{

}

void OnLeave()
{



Edit: OnLeave() is one word Smile

Spoiler below!
If you find this a nuisance, you could try purely scripting it...

PHP Code: (Select All)
OnStart()
{
SetEntityPlayerInteractCallback("""DoorLockedPlayer"true);
}

void DoorLockedPlayer("mansion_1")
{
if(
GetSwingDoorLocked("mansion_1") == true)
{
SetMessage("DoorLocked""doorlocked1"0);
}



Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 12-23-2013, 02:01 AM by Romulator.)
12-23-2013, 01:57 AM
Find Reply


Messages In This Thread
help script stuff sorta - by MrJackrabbit - 12-22-2013, 09:19 PM
RE: help script stuff sorta - by Kullin - 12-22-2013, 11:30 PM
RE: help script stuff sorta - by MrJackrabbit - 12-23-2013, 12:01 AM
RE: help script stuff sorta - by Kullin - 12-23-2013, 12:11 AM
RE: help script stuff sorta - by MrJackrabbit - 12-23-2013, 12:21 AM
RE: help script stuff sorta - by Kullin - 12-23-2013, 12:49 AM
RE: help script stuff sorta - by MrJackrabbit - 12-23-2013, 01:21 AM
RE: help script stuff sorta - by PutraenusAlivius - 12-23-2013, 01:28 AM
RE: help script stuff sorta - by MrJackrabbit - 12-23-2013, 01:31 AM
RE: help script stuff sorta - by Romulator - 12-23-2013, 01:57 AM
RE: help script stuff sorta - by PutraenusAlivius - 12-23-2013, 02:10 AM
RE: help script stuff sorta - by MrJackrabbit - 12-23-2013, 02:59 AM
RE: help script stuff sorta - by PutraenusAlivius - 12-23-2013, 03:37 AM
RE: help script stuff sorta - by MrJackrabbit - 12-23-2013, 04:00 AM
RE: help script stuff sorta - by PutraenusAlivius - 12-23-2013, 04:15 AM
RE: help script stuff sorta - by MrJackrabbit - 12-23-2013, 04:56 AM
RE: help script stuff sorta - by PutraenusAlivius - 12-23-2013, 05:56 AM



Users browsing this thread: 1 Guest(s)