[Question] Uncontrollable but vulnerable
#1

How can you make a player take damage whilst frozen? Since TogglePlayerControllable(playerid, false) makes the player invulnerable.
Reply
#2

Can I ask why you need this?
Reply
#3

It's for a hospital system that I'm making.

Example:
Player A will be confined upon death.
Player B goes to the hospital and finishes him off.

Now may I ask, why did you ask?
Reply
#4

Just for the reason why you would want someone frozen and have them being attacked, Only way I can suggest is having a SetPlayerPos on the global check so every second it would put them back where they were and force an animation or something similar.
Reply
#5

Well, the player is being treated at the hospital and was critically injured, so there's no chance for him to move. Applying animations would be the best for this, I believe.
Reply
#6

I agree, if your struggle let me know.
Reply
#7

Used ApplyAnimation(); instead and made the "freeze" parameter to 1.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)