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
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#11
RE: help script stuff sorta

(12-23-2013, 01:57 AM)Romulator Wrote: 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(string &in entity)
{
if(
GetSwingDoorLocked("mansion_1") == true)
{
SetMessage("DoorLocked""doorlocked1"0);
}



Callback syntax god dang it.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 12-23-2013, 02:11 AM by PutraenusAlivius.)
12-23-2013, 02:10 AM
Find


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)