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 / Panic AI Script Help

Author
Message
Zombie_Expert
13
Years of Service
User Offline
Joined: 5th Jul 2011
Location: Raccoon City
Posted: 27th Feb 2013 14:36
I wish to learn how to make AI 'panic' by running around and cowering when the player fires his/her gun and or attacks an AI. They will act normal till this is triggered. Now how would this be done?

It is for a game I'm designing for a friend and I to only play and will not be making it's way to the internet. The location is based on a small town, a somewhat tiny GTA like game with no drivable nor moving vehicles. The rest will be worked on later. I just need help figuring out how what above is to be done. So, does anyone got an idea on how to set this up?

Z_E
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 27th Feb 2013 15:34
look at the coward.fpi in scriptbank/people folder. This is the solution. If you want that the npc act normal in another way, look into other scripts


Zombie_Expert
13
Years of Service
User Offline
Joined: 5th Jul 2011
Location: Raccoon City
Posted: 27th Feb 2013 18:26
I want to know if there is a possibility of making the way I explained above. They act fine, but run around and cower in fear once the player fires a gun and or attacks a npc. But if this hasn't happened yet then they act normal.

Z_E
Ross tra damus
3D Media Maker
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 28th Feb 2013 00:27
Zombie_Expert

Take a look at the link below because it may help explain a few things:

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

Overall, characters can only do what they do depending on the animations they have.

Good Luck
Zombie_Expert
13
Years of Service
User Offline
Joined: 5th Jul 2011
Location: Raccoon City
Posted: 28th Feb 2013 01:08
Well then I guess another engine will be used instead. The characters I am using are from MP4. I have been working on some new skins to make them fit the scene more.

Z_E
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 28th Feb 2013 04:39 Edited at: 28th Feb 2013 04:53
Quote: "Well then I guess another engine will be used instead."

Since model pack 4 was created by bond1 its pretty much a given it uses the stock animations with any additional anims added on (I might be wrong about this but I doubt it). If you cant work out how to script this using whats already available your not going to script it in any engine.
Your doing here what many seem to do when they cant figure something out, your blaming FPSC and spitting out the dummy.
If you actually look at the coward script and check out the manual's animation list along with taking the time to look at the animation list in the character .fpe you will find you have everything you need.
But you will need to script it a little on your own (whatever engine you use), if you at least try to do this I am sure someone will help out, or you could ask in one of the threads that offer to write scripts if you cant take the time to do so yourself.

Quote: "I wish to learn how to make AI 'panic' by running around and cowering"

If you want to learn how to do this then the answer given by Corno_1 was a good enough start (ironically he's one of those few that take script requests), if you want someone to do it for you then don't present a request in this way then drop the ball when people actually help you out.

I don't trip over...I do random gravity checks.
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 28th Feb 2013 14:19
He wish to do it yourself, just to hide it that he not want to do it. My help was very usefull, all what you need is to pace a action and a new line with a condition to the script. This isn´t very hard.
Quote: "If you want to learn how to do this then the answer given by Corno_1 was a good enough start"


Quote: "ironically he's one of those few that take script requests"

Sadly correct.... I didn´t want to do it(study), but sometimes I do it to become not rusty. Also if I find something is a funny idea, I can not let my hands away

But beside that:
This is the hole script you need, now you must give all npc which should run away, the same name and put the name also in the Ifused field(editor) of all npc


I did not make this that you just use it. Look what I did and understand it!!!! That is the way how you become a scripter

Corno_1


Login to post a reply

Server time is: 2024-11-23 17:04:56
Your offset time is: 2024-11-23 17:04:56