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 setup
Manakind Offline
Junior Member

Posts: 4
Threads: 1
Joined: Oct 2011
Reputation: 0
#8
RE: monster script setup

(10-04-2011, 05:34 PM)Your Computer Wrote: I'm going to need you guys to add this function to your script:
MonsterCheck(string &in entity, string &in type)
{
    AddDebugMessage(type, false);
}

Then in the level editor, select your monster and on the right, under the Entity tab, type in MonsterCheck for the CallbackFunc field. Be sure to save.

Also, update the MonsterFunction function so that it looks like this:
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
    AddDebugMessage(asChild+" has activated!", false);
    SetEntityActive("servant_grunt_1", true);
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
    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, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 4, "");
}

Save. Now load your map and make sure show debug messages is enabled in your debug menu. Now activate the area by colliding with it and tell me if you see any text at the bottom left that says either "ScriptArea_1 has activated!" or "OnAutoDisabled" or both.
silly question but how do you activate debug mode? ive tested the map and its not activating for me. would like to check if it says activated or onautodisabled =)
10-04-2011, 07:40 PM
Find


Messages In This Thread
monster script setup - by Manakind - 10-03-2011, 09:42 PM
RE: monster script setup - by Urkle - 10-03-2011, 09:50 PM
RE: monster script setup - by Manakind - 10-04-2011, 01:00 PM
RE: monster script setup - by Your Computer - 10-04-2011, 01:20 PM
RE: monster script setup - by Manakind - 10-04-2011, 03:26 PM
RE: monster script setup - by i3670 - 10-04-2011, 03:24 PM
RE: monster script setup - by Your Computer - 10-04-2011, 05:34 PM
RE: monster script setup - by Manakind - 10-04-2011, 07:40 PM
RE: monster script setup - by i3670 - 10-04-2011, 07:51 PM
RE: monster script setup - by Your Computer - 10-05-2011, 12:47 AM
RE: monster script setup - by i3670 - 10-05-2011, 09:25 AM
RE: monster script setup - by Your Computer - 10-05-2011, 11:37 AM
RE: monster script setup - by i3670 - 10-05-2011, 11:47 AM
RE: monster script setup - by Your Computer - 10-05-2011, 12:24 PM
RE: monster script setup - by i3670 - 10-05-2011, 12:31 PM
RE: monster script setup - by Your Computer - 10-05-2011, 12:37 PM
RE: monster script setup - by i3670 - 10-05-2011, 12:52 PM
RE: monster script setup - by Your Computer - 10-05-2011, 12:57 PM
RE: monster script setup - by i3670 - 10-05-2011, 01:04 PM
RE: monster script setup - by Your Computer - 10-05-2011, 07:16 PM
RE: monster script setup - by jmayo - 10-05-2011, 09:33 PM



Users browsing this thread: 1 Guest(s)