PhysObj/GetVolume

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 2: Line 2:
 
|Name=GetVolume
 
|Name=GetVolume
 
|Parent=PhysObj
 
|Parent=PhysObj
|Description=Returns the volume in source units³.
+
|Description=Returns the volume in source units³. Or nil if the PhysObj is a generated sphere or box.
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes

Latest revision as of 01:14, 10 January 2020

 PhysObj:GetVolume( )

Description

Returns the volume in source units³. Or nil if the PhysObj is a generated sphere or box.

Returns

number

The volume or nil if the PhysObj is a generated sphere or box.
Personal tools
Navigation