Rob21894
Junior Member
Posts: 4
Threads: 3
Joined: Nov 2013
Reputation:
0
|
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 |
|