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
How make this script? (SOLVED)
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: How make this script?

The error is the location of your CollideCallback, since it's not within a void, it will be considered an error. Since you're using rather simple code, having it in OnStart() is perfectly valid.

Therefore, to put your AddEntityCollideCallback into the OnStart parentheses, we do something like the following;

PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("""key1""door1""UseKeyOnDoor"true);
    
AddEntityCollideCallback("Player""ScriptArea""Skyrpt1"true1);
}

//rest of code below 

Make sure to change CallbackName to the name of your callback as well, which in this case, is Skyrpt1, since that is defined in your AddEntityCollideCallback().

Also, welcome to the forums! Just a friendly reminder to post any coding issues with Amnesia in the Development Support subforum. I have moved the thread over to there now.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
02-14-2016, 08:32 PM
Find


Messages In This Thread
How make this script? (SOLVED) - by Abihishi - 02-14-2016, 06:11 PM
RE: How make this script? - by Mudbill - 02-14-2016, 07:41 PM
RE: How make this script? - by Abihishi - 02-14-2016, 07:57 PM
RE: How make this script? - by Romulator - 02-14-2016, 08:32 PM
RE: How make this script? - by Mudbill - 02-14-2016, 08:34 PM
RE: How make this script? - by Abihishi - 02-14-2016, 08:47 PM
RE: How make this script? - by Mudbill - 02-14-2016, 08:51 PM
RE: How make this script? - by Abihishi - 02-14-2016, 08:54 PM
RE: How make this script? - by Mudbill - 02-14-2016, 11:53 PM
RE: How make this script? - by Abihishi - 02-15-2016, 03:12 PM
RE: How make this script? - by Daemian - 02-16-2016, 12:46 AM
RE: How make this script? - by Spelos - 02-16-2016, 08:48 AM
RE: How make this script? - by Abihishi - 02-16-2016, 03:17 PM
RE: How make this script? - by Mudbill - 02-16-2016, 03:26 PM
RE: How make this script? - by Romulator - 02-16-2016, 03:55 PM
RE: How make this script? - by Abihishi - 02-16-2016, 04:09 PM
RE: How make this script? - by Spelos - 02-16-2016, 05:07 PM
RE: How make this script? - by Abihishi - 02-16-2016, 05:38 PM
RE: How make this script? - by Spelos - 02-16-2016, 06:15 PM
RE: How make this script? - by Abihishi - 02-16-2016, 07:44 PM
RE: How make this script? - by Mudbill - 02-16-2016, 10:09 PM



Users browsing this thread: 3 Guest(s)