How many units is the size of a player?

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

How many units is the size of a player?

Postby BackRaw » Sun Jan 25, 2015 9:57 pm

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?
My Github repositories:

Source.Python: https://github.com/backraw
User avatar
L'In20Cible
Project Leader
Posts: 1536
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Sun Jan 25, 2015 10:16 pm

Syntax: Select all

size = (player.get_player_maxs() - player.get_player_mins()).z
This also update when the player is crouching, etc.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Sun Jan 25, 2015 11:28 pm

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!
My Github repositories:

Source.Python: https://github.com/backraw

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 110 guests