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 / Fake attack-Help

Author
Message
Jedi portug
User Banned
Posted: 7th Sep 2008 04:32
I was wondering if it was possible (and how) to have the ennemies attacking a certain character (just pretending he is not your ally or anything) and then when you reach them they attack you.
Any help?

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th Sep 2008 05:38
For their script, have them manually target your dummy ally with the "settargetname" command. Give this command your dummy ally entity's name. Then you can have them rotate to that entity with "rotatetotarget". After that, since they are facing your dummy ally, you can have them just "useweapon".

Now when the player approaches, you can check for the player's distance from the entity with "plrdistwithin". Whent he player gets close enough have them run a regular AI sequence for enemies.


Hope you understood all that.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Jedi portug
User Banned
Posted: 7th Sep 2008 16:30
Actually I did!
now one more thing how do I get them to punch me? instead of shooting?(if it is possible of course)

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 8th Sep 2008 05:20
You could try the "reload" animation for the punch animation, that's what most people do.

After that, it's just a matter of using "plraddhealth" at the right to to give the player negative health... which would be damage.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Jedi portug
User Banned
Posted: 8th Sep 2008 14:46
ok thanks

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
xXThe Dead OneXx
17
Years of Service
User Offline
Joined: 20th Oct 2007
Location: In My Own Little World/s
Posted: 23rd Sep 2008 04:04
wouldn't the grenade throw animation look more like a punch?

Offset a little to the left. Or was it the right?
xXThe Dead OneXx
17
Years of Service
User Offline
Joined: 20th Oct 2007
Location: In My Own Little World/s
Posted: 23rd Sep 2008 04:06
i had that once but i just changed it because it's not what i meant to do... heh.

Offset a little to the left. Or was it the right?

Login to post a reply

Server time is: 2024-11-24 13:24:13
Your offset time is: 2024-11-24 13:24:13