nanos world API Reference Unofficial documentation
Function Network authority Fast

Pawn:SetCapsuleSize

Sets this Character's Capsule size (will affect Camera location and Character's collision)

Syntax

Lua
my_pawn:SetCapsuleSize(radius = 0, half_height = 0, crouched_half_height = 0)

Parameters

Name Type Default Description
radius optional integer 0 Pass 0 to auto calculate the radius based on the mesh bounds
half_height optional integer 0 Pass 0 to auto calculate the half height based on the mesh bounds
crouched_half_height optional integer 0 Pass 0 to auto calculate the crouched half height based on the mesh bounds