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 / Enemy faces one direction

Author
Message
Crypt Keeper
17
Years of Service
User Offline
Joined: 24th Dec 2006
Location: Stormwind, Azeroth
Posted: 5th Jan 2007 02:58
Hi, ummm, I was wondering if anyone knew how to make an enemy stay still and face only one direction but they also keep shooting. I am tring to make a game and in one part the player walks in a room where robots are being tested and I want them to shoot at a target but not at the player. I already know how to make them immibile just having problems with making them face one direction. Any help would be very appreciated. And I have searched and have found nothing, if anyone knows of a thread then please post a link.

P.S-I am new here and dont want to start any problems, so I am sorry in advance for anything i might have said that is incorrect and/or in-polite

Thanks

"I haven't lost my mind, it's backed up on a disk somewhere."
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 5th Jan 2007 15:55
ok, fair enough. I can see that if you searched that you probably didn't get any results.

try

:state=0,random=2:useweapon,rundecal=6

paste the above into notepad and save it into the script bank in the FPSC file structure.

save it as

"shootoneway.fpi"

then select this new script as the characters "main" AI.

Welcome to the forums.

Crypt Keeper
17
Years of Service
User Offline
Joined: 24th Dec 2006
Location: Stormwind, Azeroth
Posted: 5th Jan 2007 21:03
Thanks, Butter fingers. I have seen a lot of your posts and I know you help out a lot. Anyway, the script works but the enemy holds his gun at his sides. Heres a screenie. Do you have any idea how to fix it? If not I'll try learing how to script but I know it'll take awhile. Thanks for the help

"I haven't lost my mind, it's backed up on a disk somewhere."

Attachments

Login to view attachments
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 6th Jan 2007 00:13


I'm sorry, my answers are limited. You must ask the right question.

Crypt Keeper
17
Years of Service
User Offline
Joined: 24th Dec 2006
Location: Stormwind, Azeroth
Posted: 6th Jan 2007 17:24
Thanks xplosys, worked perfectly. Thanks butter fingers for trying.

"I haven't lost my mind, it's backed up on a disk somewhere."

Login to post a reply

Server time is: 2024-11-23 09:19:00
Your offset time is: 2024-11-23 09:19:00