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.

FPSC Classic Scripts / Chase script

Author
Message
sberk
14
Years of Service
User Offline
Joined: 6th Jun 2010
Location: next to a cup of coffee
Posted: 21st Dec 2010 16:14 Edited at: 21st Dec 2010 16:16
Hi,
At the moment the player can just run away from my AIs. Is there any way to avoid this. I would like to make sure that the enemy AIs follow the different players. I'm looking for a script where an enemy chases the player? It is too easy to outsmart the normal scripts.
sberK

PS: Just setting the character as objective does not help. I would like to avoid the situation that a player reaches the and of the level and realizes he forgot to kill the first enemy.
BMG
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Working hard/hardly working...somewhere
Posted: 21st Dec 2010 16:56
Does this help? It's pretty basic but might still work.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size

Attachments

Login to view attachments
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 21st Dec 2010 17:01 Edited at: 21st Dec 2010 17:09
...nifty little script.

Could be useful if waypoints are intended to be present in the level.

sberk
14
Years of Service
User Offline
Joined: 6th Jun 2010
Location: next to a cup of coffee
Posted: 22nd Dec 2010 10:33
Hi,
I tried to modify the scripts, with the original script the AI just stood there. My new script is:


Now I have the problem, that the AI moves to the corner of the room and get stuck.
Can anybody point me to the mistake in the script?
sberK
OutdoorGamer
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: everywhere...
Posted: 22nd Dec 2010 14:15
I'm not entirely sure, but isn't fpgcrawtext to display text on your screen. If it is I'm not sure why you have it there. Can anyone confirm this?

signatures are dumb.....
idk why....
sberk
14
Years of Service
User Offline
Joined: 6th Jun 2010
Location: next to a cup of coffee
Posted: 23rd Dec 2010 09:19
Hi,
the fpgcrawtext is just for debugging reasons. With the text displayed, I get at least some information, what my script is doing,
cheers
sberK

Login to post a reply

Server time is: 2024-11-24 15:07:50
Your offset time is: 2024-11-24 15:07:50