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 / ai changing script

Author
Message
loki009
17
Years of Service
User Offline
Joined: 4th Oct 2007
Location:
Posted: 5th Oct 2007 01:16
I did a search for this and I can\'t find it

I need some help I was wondering if anyone knows of any sort of script that makes it so a trigger will change an entities ai? I need this because I have a guy who first starts off nice and will follow you around, but once you get to a certain point attacks you. I thought about either a script that changes ai or one that destroys the guy and respawns a guy that looks just like him only with a hostile ai. If there is a way to just change it though that would be the best option. any help is appreciated.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Oct 2007 13:56
Hmmm, destroying him then respawning a new one would look a little weird. That would cause the old one to disappear and the new one to appear very quickly. I am having that same problem when I try to destroy and entity and make it spawn again without the player noticing.

I imagine you may be able to script into the guy's ai script that if the player is in the zone, then "shootplr", which will run the guy's shooting ai script.

Not sure about the intimate details, though. Might wanna try that out and let me know if it worked.


The one and only,
~PlystirE~

In Soviet Russia, road forks you!

Mom: I may not be the alpha and omega, but I can sure as hell be yours!

Login to post a reply

Server time is: 2024-11-23 22:56:54
Your offset time is: 2024-11-23 22:56:54