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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No script working on my custom story *SOLVED*
modoscar Offline
Junior Member

Posts: 9
Threads: 3
Joined: Jun 2012
Reputation: 0
#1
No script working on my custom story *SOLVED*

No script i've tried works when i try them on my custom map and i have looked everywhere without finding any answers.
Example of a script: An inactive monster should become active when some oil gets picked up,

"monster_oil" is the item that should activate the monster servant_brute_1, (they have the same name in the script and in the map)


void OnStart()
{

SetEntityPlayerInteractCallback("monster_oil", "Spawn_Monster", true);

}

void Spawn_Monster(string &in entity)
{

SetEntityActive("servant_brute_1", true);

}

My .map and .hps file has the same name. And is in the "maps" file. All help is appreciated!
(This post was last modified: 06-09-2012, 06:26 PM by modoscar.)
06-09-2012, 03:49 PM
Find


Messages In This Thread
No script working on my custom story *SOLVED* - by modoscar - 06-09-2012, 03:49 PM



Users browsing this thread: 1 Guest(s)