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
Help with script.
mattman111 Offline
Junior Member

Posts: 3
Threads: 1
Joined: Apr 2012
Reputation: 0
#1
Help with script.

Im still new to scripting but basically i want to enter a area and a monster wakes up breaks a door charges at you then poofs. Here is my script. And he doesn't spawn at all.

void OnStart()
{
PlayMusic("ambience_swoop_myst.ogg", true, 0.8f, 1, 0, true);
AddEntityCollideCallback("Player", "Pop1Area", "Pop1Func", true, 1);
SetEntityCallbackFunc("Pop1Door", "Pop1DoorBreakFunc");
}

void Pop1DoorBreakFunc(string &in asEntity, string &in type)
{
SetEnemyIsHallucination("Pop1Brute", true);
}


void Pop1Func(string &in asParent, string &in asChild, int alState)
{
SetNPCAwake("Pop1Brute", true, true);
ShowEnemyPlayerPosition("Pop1Brute");
}

I used the exact codes from the engine scripts wiki page. I don't know what i'm doing wrong..
(This post was last modified: 04-22-2012, 05:23 PM by mattman111.)
04-22-2012, 04:48 PM
Find


Messages In This Thread
Help with script. - by mattman111 - 04-22-2012, 04:48 PM
RE: Help with script. - by Cranky Old Man - 04-22-2012, 04:56 PM
RE: Help with script. - by mattman111 - 04-22-2012, 05:08 PM
RE: Help with script. - by JetlinerX - 04-22-2012, 05:13 PM
RE: Help with script. - by mattman111 - 04-22-2012, 05:19 PM
RE: Help with script. - by JetlinerX - 04-22-2012, 05:39 PM



Users browsing this thread: 1 Guest(s)