The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Enemy waits at each pathnode
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
Enemy waits at each pathnode

hello. my monster waits about 1 seconds each pathnode it reaches. cant it be a smooth movement? all pathnodes are about 1 m away from each other. my script:
void OnStart()
{
    SetSanityDrainDisabled(false);
    SetEntityPlayerInteractCallback("shirt_hanging_white_obj_1", "ActivateEnemy", true);
}

void ActivateEnemy(string &in asEntity)
{
    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", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_14", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_15", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_16", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_17", 5, "");
}

When you are looking for someone, to do the scripting for your Custom Story, ask me!
02-17-2013, 06:39 PM
Find


Messages In This Thread
Enemy waits at each pathnode - by tonitoni1998 - 02-17-2013, 06:39 PM



Users browsing this thread: 1 Guest(s)