Posts: 318
Threads: 31
Joined: Mar 2012
Reputation:
0
How can you make a player take damage whilst frozen? Since TogglePlayerControllable(playerid, false) makes the player invulnerable.
Posts: 195
Threads: 14
Joined: Oct 2010
Can I ask why you need this?
Posts: 318
Threads: 31
Joined: Mar 2012
Reputation:
0
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?
Posts: 195
Threads: 14
Joined: Oct 2010
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.
Posts: 318
Threads: 31
Joined: Mar 2012
Reputation:
0
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.
Posts: 195
Threads: 14
Joined: Oct 2010
I agree, if your struggle let me know.
Posts: 318
Threads: 31
Joined: Mar 2012
Reputation:
0
Used ApplyAnimation(); instead and made the "freeze" parameter to 1.