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
Problem with scripting monsters
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#1
Problem with scripting monsters

Hello everyone:
I'm making a very simple map, "The chasing", with only one monster. The objective is that when the player collides with the script area, a monsters appears. It must be very simple, but i've made the script and it doesn't work.
Here is the script:

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "ActivateMonster", true, 1);

}

void OnEnter ()
{

}

void OnLeave

{

}
void ActivateMonster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_2", true);

I don't know what's wrong, so i would like a lot a bit of help.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-01-2012, 10:31 PM
Find


Messages In This Thread
Problem with scripting monsters - by The chaser - 07-01-2012, 10:31 PM
RE: Problem with scripting monsters - by Cruzore - 07-01-2012, 10:41 PM
RE: Problem with scripting monsters - by EXAWOLT - 07-01-2012, 10:44 PM
RE: Problem with scripting monsters - by EXAWOLT - 07-02-2012, 06:53 PM
RE: Problem with scripting monsters - by Cruzore - 07-02-2012, 07:21 PM



Users browsing this thread: 1 Guest(s)