Page 1 of 1

How many units is the size of a player?

Posted: Sun Jan 25, 2015 9:57 pm
by BackRaw
Hi,

is there any way I can measure the size of a player? I want to apply an effect on the player from their head to the feet or the other way around. Is this possible?

Posted: Sun Jan 25, 2015 10:16 pm
by L'In20Cible

Syntax: Select all

size = (player.get_player_maxs() - player.get_player_mins()).z
This also update when the player is crouching, etc.

Posted: Sun Jan 25, 2015 11:28 pm
by BackRaw
L'In20Cible wrote:

Syntax: Select all

size = (player.get_player_maxs() - player.get_player_mins()).z
This also update when the player is crouching, etc.


Thanks!