The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
What's wrong with this script?
Strembitsky Offline
Senior Member

Posts: 254
Threads: 37
Joined: Feb 2012
Reputation: 3
#1
What's wrong with this script?

//===========================================
     // Starter's Script File!
     //===========================================

     //===========================================
     // This runs when the map first starts
     void OnStart()
     {
          AddEntityCollideCallback("Player", "ScriptArea_1", "Collide_Area", true, 1);
     }
     void Collide_Area(string &in asParent, string &in asChild, int alState)      
     {
          [void FadeEnemyToSmoke(string& servant_grunt, bool abPlaySound);]
     }

     //===========================================
     // This runs when the player enters the map
     void OnEnter()
     {
     }

     //===========================================
     // This runs when the player leaves the map
     void OnLeave()
     {
     }


It is meant to poof away a monster once you enter the area. Whenever I try to open the map in Amnesia, the game stops responding with an always unique error message.
(This post was last modified: 02-05-2012, 12:08 AM by Strembitsky.)
02-05-2012, 12:08 AM
Find


Messages In This Thread
What's wrong with this script? - by Strembitsky - 02-05-2012, 12:08 AM
RE: What's wrong with this script? - by Elven - 02-05-2012, 12:10 AM
RE: What's wrong with this script? - by Elven - 02-05-2012, 12:19 AM
RE: What's wrong with this script? - by Elven - 02-05-2012, 12:25 AM



Users browsing this thread: 1 Guest(s)