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 / Trouble with waypoints in script for a vault.

Author
Message
JesterCarvalho
14
Years of Service
User Offline
Joined: 13th May 2010
Location: Star
Posted: 14th May 2010 03:11 Edited at: 14th May 2010 06:27
This is my first shot at a full script. I am having problems with enemy following waypoints unless player is visible through enemy's eyes. I am trying to make it to where the player can sneak up behind the enemy undetected. If the player is seen then the enemy will attack or go trigger an alarm. i have uploaded what i have for a script so far. entity ends up standing or waiting for player to come around corner. Please help me correct script. And how should i set the enemy characteristics.

Thank you,

~Jester~

Attachments

Login to view attachments
MandoAndy
14
Years of Service
User Offline
Joined: 10th May 2010
Location: New Hampshire
Posted: 15th May 2010 22:16
NOTICE: I am NOT a scripting genius, but I'm learning - and I wrote a script a while back which did exactly what you're wanting your script to do, so here's my advice...

I think your problem may be the fact that you're using the "shootplr" command, which calls the entity's shooting script. It might be easier for you to break this up into 2 scripts - one for the main AI, and the other for the shooting AI.

Here's a script that I wrote a while ago -- the entity follows a waypoint until it sees the player in its field of vision. Then, it calls the entity's shooting script with "shootplr".



This code worked fine for me. Let me know if it works for you! Remember to keep the default script separate from your shooting script, and you should be fine.
JesterCarvalho
14
Years of Service
User Offline
Joined: 13th May 2010
Location: Star
Posted: 16th May 2010 16:52
thank you I will give it a try. I am also trying to incorporate the guard running to an alarm before he attacks plr also. This should help me simplify the script allot.

~Jester~

Login to post a reply

Server time is: 2024-11-25 00:41:48
Your offset time is: 2024-11-25 00:41:48