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 / Is there a condition for a character getting hit by the player?

Author
Message
A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 29th Nov 2013 22:05
Anything like "aihit=x"?

Don't waste your life
BlackFox
FPSC Master
15
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 29th Nov 2013 22:24 Edited at: 29th Nov 2013 23:11
This is what Ched spent many hours working on. We should not let all his hard work and efforts go in vain.

In answer to your question- no, unless there is one and I missed an update for the script syntax file. I did a search of the one I have from 13 Dec 2012 (Issue 5.1)and did not find anything regarding "AI hit". I did find the following:



The above may be of use to you- you might be able to use that condition to work around your result.


There's no problem that can't be solved without applying a little scripting.
rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 29th Nov 2013 23:58 Edited at: 30th Nov 2013 00:03
You have to script the damage with player within distance, if using hands then use mid swing animation frame to trigger, you might also want to trigger a recoil hit animation if the character has one.

I take it you mean melee as all characters already use a hitbox, and some use limb detection.
D0MINIK
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 30th Nov 2013 03:39 Edited at: 30th Nov 2013 03:41
I recommend the two of these conditions:

:SHOTDAMAGE=X:
Is true if the shot damage received by an entity exceeds X. The source of the shot damage is also set as a possible target for the entity.

:SHOTDAMAGETYPE=X:
Is true if the limb type shot was equal to X. The source of the shot damage is also set as a possible target for the entity.


Source is the script syntax list by ched as mentioned by BlackFox above.

A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 2nd Dec 2013 22:02
Thanks everyone.

Don't waste your life

Login to post a reply

Server time is: 2024-03-29 06:26:37
Your offset time is: 2024-03-29 06:26:37