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
Monster script
liquiddr3amz Offline
Junior Member

Posts: 14
Threads: 5
Joined: Nov 2012
Reputation: 0
#5
RE: Monster script

could someone explain what i did wrong :/ i am new to scripting


void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1",true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, "");
}

AddEntityCollideCallback("servant_grunt_1", "ScriptArea_1", "FUNCNAME", true, 1);
void FUNCNAME(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("servant_grun_1", true);
}

i get a script error saying "main (29,25) : ERR expected identifer"
11-23-2012, 08:16 AM
Find


Messages In This Thread
Monster script - by giacomo9 - 11-19-2012, 10:46 PM
RE: Monster script - by Rowzter - 11-19-2012, 10:59 PM
RE: Monster script - by giacomo9 - 11-19-2012, 11:13 PM
RE: Monster script - by Rowzter - 11-19-2012, 11:20 PM
RE: Monster script - by liquiddr3amz - 11-23-2012, 08:16 AM
RE: Monster script - by The chaser - 11-23-2012, 08:52 AM
RE: Monster script - by liquiddr3amz - 11-23-2012, 04:33 PM
RE: Monster script - by FlawlessHappiness - 11-23-2012, 05:27 PM
RE: Monster script - by liquiddr3amz - 11-23-2012, 05:38 PM
RE: Monster script - by The chaser - 11-23-2012, 05:57 PM
RE: Monster script - by liquiddr3amz - 11-24-2012, 03:18 AM
RE: Monster script - by The chaser - 11-24-2012, 12:03 PM
RE: Monster script - by FlawlessHappiness - 11-24-2012, 09:05 AM



Users browsing this thread: 1 Guest(s)