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
#7
RE: A few script questions..

Ah I had, I must have missed it. Oops ^^

I've looked at quite a few things on patrolling and couldn't find anything that worked. =3 That or I'm a complete idiot and am completely getting the script wrong ;A;

So I tried that and I think I remember doing this before...tried it again anyway, this is how my script now looks. I think I'm doing something wrong:

void onstart()
{
    AddEntityCollideCallback("Player", "PlayerCollide", "servant_grunt_1", true, 1);
}
    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, "");
}

Then I run the game and load my map, walk down the first hallway and through the level door that brings me to the room with the grunt. The game crashes on the loading screen with this message:

FATAL ERROR: Could not load script file 'my directory/filename.hps'!
ExecuteString (1,1): ERR :no matching signatures to 'OnLeave()'
main (5,9) : ERR :Expected identifier
06-21-2012, 06:52 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)