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 / Model Pack 57 - Having zombie follow way-point until he sees player

Author
Message
ASTECH
17
Years of Service
User Offline
Joined: 18th Jul 2007
Location:
Posted: 16th Feb 2012 18:22 Edited at: 16th Feb 2012 18:28
I have to admit that the scripts are pretty in-depth on these characters. I simply don't know where to start or what to do to get the effect that I need.

Alright, so if you read the title, you know what I'm looking for. Where would I need to add commands and what commands to I add to
have the zombie follow a path until he finds the player? Once he loses sight of the player, he could continue his waypoint.
Although, the last instance is purely optional. I'm mainly trying to have the zombie follow a waypoint before executing the rest of the script.

If anyone has this pack and knows how to help, I'd appreciate some help. Thanks.

EDIT: BTW, I'm looking at the marching script in the pack.

PC Specs: AMD X4 2.7Ghz, 8GB DDR3 RAM, Nvidia 9800GT, Win. 7 Pro 64 Bit
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 17th Feb 2012 14:17
Actually, i believe someone covered this in a tutorital at one point a long time ago, and I believe that it's contained in the community guide. Check the guide to see if it's there.

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 18th Feb 2012 03:24 Edited at: 18th Feb 2012 03:26
open files/scriptbank/people/follow.fpi.

there is your waypointstates. only thing to do is alter your ai-mainscript (make copy before changing anything).

add the follow.fpi-lines (waypointstate=x) in front of the state=0 line of your ai-script. now you have to insert :state=0:waypointstate=0 into the beginning in some way and a return to this if player is not be seen/in a specified distance, but there it gets tricky.

thats all i can say to this because i dont have the pack and i dont know wich ai-script you use.

what you can easily do is look what animation is the marching, use follow.fpi with the marching-anim instead of walking and add a state=0-action into each waypointline, then add :state=0,plrdistwithin=x:runfpi="ai-scriptpath".
that allows you to march waypoints until player gets near. then the troops will do their normal things with dark-ai-script as usual.
dont know if it works, but worth a try i think.

ASTECH
17
Years of Service
User Offline
Joined: 18th Jul 2007
Location:
Posted: 21st Feb 2012 15:42
Alright. Thanks guys. I've been doing a bunch of script modifying here lately and I've been needing some advice from other people.

PC Specs: AMD X4 2.7Ghz, 8GB DDR3 RAM, Nvidia 9800GT, Win. 7 Pro 64 Bit

Login to post a reply

Server time is: 2024-11-24 01:23:39
Your offset time is: 2024-11-24 01:23:39