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
Can't get grunt to spawn upon item pickup
Rob21894 Offline
Junior Member

Posts: 4
Threads: 3
Joined: Nov 2013
Reputation: 0
#1
Can't get grunt to spawn upon item pickup

I'm new to hpl2 engine, and still trying to figure out how it works...

I am trying to get a grunt to spawn when I pick up an object,

Here is the code I've used to try execute this.

void OnStart()
{
SetEntityPlayerInteractCallback("flask01_aqua_regia_1", "Scriptspawnenemy1", true);
}
void Scriptspawnenemy1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt1", true);
AddEnemyPatrolNode("Enemy1", "PathNodeArea_1", 0.0, " ");
AddEnemyPatrolNode("Enemy1", "PathNodeArea_2", 0.0, " ");
AddEnemyPatrolNode("Enemy1", "PathNodeArea_3", 0.0, " ");


I have double checked everything to see if im using the correct names, even copy and pasted them into this,
I also have a "Script area" called, Scriptspawnenemy1,

Where am i going wrong? any help would be appriciated
(This post was last modified: 11-13-2013, 08:04 PM by Rob21894.)
11-13-2013, 07:48 PM
Find


Messages In This Thread
Can't get grunt to spawn upon item pickup - by Rob21894 - 11-13-2013, 07:48 PM



Users browsing this thread: 1 Guest(s)