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
A few script questions..
SiderealStop Offline
Junior Member

Posts: 32
Threads: 3
Joined: Jun 2012
Reputation: 0
#9
RE: A few script questions..

I realized I missed the void actually, and I thought OnStart/OnEnter/OnLeave weren't case sensitive?

Anyway this is what it now looks like, and it's still crashing - with the same error message - upon hitting the loading screen:

void OnStart()
{
    AddEntityCollideCallback("Player", "PlayerCollide", "servant_grunt_1", true, 1);
}
void OnEnter()
    void MachineryGruntPatrol(string &in asParent , string &in asChild , int alState)
{
    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", 4, "");
}
06-21-2012, 07:03 PM
Find


Messages In This Thread
A few script questions.. - by SiderealStop - 06-21-2012, 04:50 PM
RE: A few script questions.. - by Nice - 06-21-2012, 05:14 PM
RE: A few script questions.. - by SiderealStop - 06-21-2012, 05:25 PM
RE: A few script questions.. - by Cruzore - 06-21-2012, 05:30 PM
RE: A few script questions.. - by SiderealStop - 06-21-2012, 06:33 PM
RE: A few script questions.. - by Cruzore - 06-21-2012, 06:38 PM
RE: A few script questions.. - by SiderealStop - 06-21-2012, 06:52 PM
RE: A few script questions.. - by Cruzore - 06-21-2012, 06:55 PM
RE: A few script questions.. - by SiderealStop - 06-21-2012, 07:03 PM
RE: A few script questions.. - by Cruzore - 06-21-2012, 07:07 PM
RE: A few script questions.. - by SiderealStop - 06-21-2012, 07:14 PM



Users browsing this thread: 1 Guest(s)