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 / Condition for player GETTING damage?!

Years of Service
User Offline
Joined: 18th Jan 2007
Location: Austria
Posted: 20th Feb 2014 15:54
Hi all!

I know that there are various conditions for checking if enemies and entities are getting damaged, but what about the player?

Is there a condition that checks if the player gets hurt at the moment? and how high this damage is?

Producer @ Mipumi Games
CEO Homegrown Games
Come to where the madness is:
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 20th Feb 2014 17:16
Hi Ertlov
Do you mean something like "PLRHEALTHGREATER=X or PLRHEALTHLESS=X"
Would that help you?

You know you're a bad gamer when you're able to run out of infinite lives.
FPSC Master
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 20th Feb 2014 17:19 Edited at: 20th Feb 2014 17:21
Quote: "Is there a condition that checks if the player gets hurt at the moment?"

Other than the conditions "plrhealthgreater/less", I did not see any other conditions that check the player damage (checked r773). There is "shotdamage", but that refers to entities. We had to add conditions ourselves to check player damage and (in effect) separated health and damage of the player.

There's no problem that can't be solved without applying a little scripting.
Valued Member
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 26th Feb 2014 00:11 Edited at: 26th Feb 2014 00:14
You can set a custom variable at start of game as player health (once) then have routine check to see if that value is any less than the player's actual health value playerhealthless = "custom variable".

Once it is lower, you can compare its value with the player health to generate a damage value.


Login to post a reply

Server time is: 2021-12-02 03:47:04
Your offset time is: 2021-12-02 03:47:04