Use Sapp's init.txt for that?
And it's because you have to specify which player's variable you want to set, like 'var_set playerhunted 1 $n'
Perhaps I forgot to mention it, hehe.
Use Sapp's init.txt for that?
And it's because you have to specify which player's variable you want to set, like 'var_set playerhunted 1 $n'
Perhaps I forgot to mention it, hehe.
I forgot sapp had its own init :v
Also, I've encountered some strange bug pertaining to maths.
Using what you wrote, when the player is near 0 health (under 0.1 or 0.01), it becomes some absurd number like 200. That is, the converted variable, not the actual $hp.
Also also, will it be possible to perform arithmetic between two variables and not just a variable and a number? I've found myself trying to calculate the difference in health when a player's health changes, but the result is always 0. I could use a counter variable, but I'm not sure I want to write an event loop every time somebody takes damage.
There are currently 12 users browsing this thread. (0 members and 12 guests)
Bookmarks