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
Looping? (Still need help)
SiderealStop Offline
Junior Member

Posts: 32
Threads: 3
Joined: Jun 2012
Reputation: 0
#11
RE: Looping?

Kay added it, changed it to false and everything. Still getting the error though when I walk into the room. This is what I have in the script:



void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "servant_grunt_1", true, 1);
InteractConnectPropWithMoveObject("MachineryDoor", "valve_iron_rusty_1", "MachineryDoor", true, false, -1);
AddEntityCollideCallback("ScriptArea_1", "servant_grunt_1", "Loop", fale, 1);
}
void OnEnter()
void Loop(string &in asTimer)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 1, "");
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", 0, "");
AddTimer("2", 1, "Loop");
}

'Loop', I', guessing, is the name of the loop function. I used that in the 'function' part of the callback. Put the grunt as 'child' and put the script as 'parent'. Still not working. xD It looks like it actually should work so, really, I think it might be the timer itself...?
06-24-2012, 08:06 PM
Find


Messages In This Thread
Looping? (Still need help) - by SiderealStop - 06-24-2012, 02:39 PM
RE: Looping? - by Rapture - 06-24-2012, 03:19 PM
RE: Looping? - by SiderealStop - 06-24-2012, 03:37 PM
RE: Looping? - by SilentStriker - 06-24-2012, 05:02 PM
RE: Looping? - by SiderealStop - 06-24-2012, 06:15 PM
RE: Looping? - by Cruzore - 06-24-2012, 06:28 PM
RE: Looping? - by SiderealStop - 06-24-2012, 07:22 PM
RE: Looping? - by Cruzore - 06-24-2012, 07:28 PM
RE: Looping? - by SiderealStop - 06-24-2012, 07:42 PM
RE: Looping? - by Cruzore - 06-24-2012, 07:48 PM
RE: Looping? - by SiderealStop - 06-24-2012, 08:06 PM
RE: Looping? - by Cruzore - 06-24-2012, 08:07 PM
RE: Looping? - by SiderealStop - 06-24-2012, 08:15 PM
RE: Looping? - by Cruzore - 06-24-2012, 08:19 PM
RE: Looping? - by SiderealStop - 06-24-2012, 08:23 PM
RE: Looping? - by Cruzore - 06-24-2012, 08:28 PM
RE: Looping? - by SiderealStop - 06-24-2012, 08:33 PM
RE: Looping? - by Cruzore - 06-24-2012, 08:46 PM
RE: Looping? - by SiderealStop - 06-24-2012, 08:52 PM
RE: Looping? - by Cruzore - 06-24-2012, 08:55 PM
RE: Looping? - by SiderealStop - 06-24-2012, 09:02 PM
RE: Looping? - by Cruzore - 06-24-2012, 09:05 PM
RE: Looping? - by SiderealStop - 06-24-2012, 09:07 PM
RE: Looping? (Still need help) - by Cruzore - 06-24-2012, 09:21 PM
RE: Looping? (Still need help) - by SiderealStop - 06-24-2012, 10:00 PM
RE: Looping? (Still need help) - by Your Computer - 06-25-2012, 12:51 AM
RE: Looping? (Still need help) - by Damascus - 06-25-2012, 08:08 AM
RE: Looping? (Still need help) - by SiderealStop - 06-25-2012, 05:51 PM
RE: Looping? (Still need help) - by Damascus - 06-25-2012, 06:51 PM
RE: Looping? (Still need help) - by Cruzore - 06-25-2012, 07:00 PM
RE: Looping? (Still need help) - by SiderealStop - 06-26-2012, 04:44 PM



Users browsing this thread: 1 Guest(s)