Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Terminator
14
Years of Service
User Offline
Joined: 17th Apr 2012
Location:
Posted: 19th Apr 2012 04:44
how can i make an enemy follow a waypoint? everytime i put a waypoint, i cant figure out how to pin an enimy to the waypoint.
Northern
15
Years of Service
User Offline
Joined: 5th Nov 2010
Location: Brazil
Posted: 19th Apr 2012 18:06
Hello Terminator,


Quote: "how can i make an enemy follow a waypoint? everytime i put a waypoint"


To do that right click on the entity and in Inspector Tab (properties of the entity) under “AI Scripts > Main," select a script from the “C:\Program Files\The Game Creators\FPS Creator\Files\scriptbank\people” folder named follow.fpi or coward10.fpi or pace10.fpi after that press apply changes button and test your level again. Now your character entity should follow the waypoints.

That's it!

Cheers,

Northern
Terminator
14
Years of Service
User Offline
Joined: 17th Apr 2012
Location:
Posted: 19th Apr 2012 23:46
well, it wont attack me now. it follows the waypoint, but now it wont attack me. i need it to follow a waypoint then attack me when it gets to the end of the waypoint.
Northern
15
Years of Service
User Offline
Joined: 5th Nov 2010
Location: Brazil
Posted: 23rd Apr 2012 02:14
Hello Terminator,

Quote: "well, it wont attack me now. it follows the waypoint, but now it wont attack me. i need it to follow a waypoint then attack me when it gets to the end of the waypoint."


Did you try the script pace10.fpi, because using that script the enemies will attack you when the player is within the range of attack of the NPC (enemy character) I mean when the character may see or identify you.

If you want the NPC attack the player only when it reaches the waypoint final mark so you or someone else should modify the main script you are using for your enemy character follow the waypoints to get the action wanted.

Regards,

Northern
Terminator
14
Years of Service
User Offline
Joined: 17th Apr 2012
Location:
Posted: 24th Apr 2012 03:26
THANKYOU!!!!!! ok how can i make it so the enemy will follow/"find" me no matter where in the map i am? like in nazi zombies.
Northern
15
Years of Service
User Offline
Joined: 5th Nov 2010
Location: Brazil
Posted: 26th Apr 2012 16:14
Hello Terminator,


Quote: "THANKYOU!!!!!! ok how can i make it so the enemy will follow/"find" me no matter where in the map i am? like in nazi zombies."



The pace10.fpi script should be able to make what do you wonder, but seems to me that there are problems either with the script or with FPSC game engine (path finding system bug) or both.


Here is an example, please see the image in attachment.

Scene 01:


Let's imagine the player (green square) is hidden inside an office or house.

The enemy arrives following the way points ( patrolling route) through rooms of the level(Image #01).


Scene 02:

The enemy arrives following the patrolling route through rooms of the level. However, he sees the player in the hallway, after be seen the player try to escape (Player escape route image) from him then the agent starts to chase the player through the level(Enemy expected chase route) while he can see the player. After get lost the player the agent ought keep going to follow his patrolling route searching for the player or someone else.

Unfortunately do not happen, because the enemy remains stopped and does not go back to the route or way points. Further, when the enemy runs chasing the player, there are collision issues( agents running into the walls) between, he and the doorways(Enemy actual chase route image), because the enemy or bot or agents or whatever other definitions, want to go through the walls, and that action ruins the game play.

While the enemy or teammate is fighting against the walls or doorways, the player goes out the vision range of the enemy or teammate, and he got lost the player and stops.

I could be wrong, but I think FPSC may have some problems with its path finding system, which should be fixed as well.

If you or someone else want to know more informations about path finding system or AI path finding system, here are some nice links:

- A* Pathfinding for Beginners By Patrick Lester

http://www.policyalmanac.org/games/aStarTutorial.htm

-The AI Systems of Left 4 Dead by Michael Booth,Valve

http://www.valvesoftware.com/publications/2009/ai_systems_of_l4d_mike_booth.pdf


Greetings,

Northern
Terminator
14
Years of Service
User Offline
Joined: 17th Apr 2012
Location:
Posted: 29th Apr 2012 04:33
hey, when i put pace10 as its main script it doesnt follow the waypoint, it just stands there and does nothing.
Northern
15
Years of Service
User Offline
Joined: 5th Nov 2010
Location: Brazil
Posted: 3rd May 2012 00:32
Hello Terminator,

Quote: "hey, when i put pace10 as its main script it doesnt follow the waypoint, it just stands there and does nothing."


Hey you might find an explanation for that thing in the following link:

http://forum.thegamecreators.com/?m=forum_view&t=196383&b=21

Cheers,

Northern

Login to post a reply

Server time is: 2026-07-04 21:39:03
Your offset time is: 2026-07-04 21:39:03