ApeCake
Member
Posts: 116
Threads: 20
Joined: Jun 2012
Reputation:
4
|
If players health is below x, y happens
So I want my player to die "instantly" when hit by a specific monster. And before you ask, no, I will not adjust the settings of the monster in the model editor. I want it to be script only. So I had an idea. If the players health is below 99 (100 is the default right?) it will activate setplayerhealth(0);. But unfortunately, I am terrible with the "if" stuff. What I have right now is
void A(Syntax stuff here)
{
if ((getplayerhealth)==<99)
{
Setplayerhealth(0);
}
It comes up with an expression value error.
Please ignore the spelling errors, the missing syntax and the missing capitals, I am writing this on my pone because my internet doesn't work on my pc anymore.
|
|
07-21-2012, 02:20 PM |
|