Constructor
Prop.Default Constructor
Syntax
Prop(location, rotation, asset, collision_type = CollisionType.Auto, gravity_enabled = true, grab_mode = GrabMode.Auto, ccd_mode = CCDMode.Auto, spawn_mode = SpawnMode.Immediate)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
location
|
Vector | — | — |
rotation
|
Rotator | — | — |
asset
|
StaticMeshPath | — | — |
collision_type
optional
|
CollisionType | CollisionType.Auto |
Setting <code>CollisionType.Auto</code> will make it automatically switch between <b>Normal</b> and <b>IgnoreOnlyPawn</b> if they are smaller than radius <b>40</b> units. |
gravity_enabled
optional
|
boolean | true |
— |
grab_mode
optional
|
GrabMode | GrabMode.Auto |
Whether or not the Prop can be grabbed |
ccd_mode
optional
|
CCDMode | CCDMode.Auto |
Whether or not the Prop should have CCD enabled (disabling it may cause Props passing through objects if it's kinda small). It's smart to force it disabled on 'visual only' props. |
spawn_mode
optional
|
SpawnMode | SpawnMode.Immediate |
Pass <code>SpawnMode.AfterConstructor</code> or <code>SpawnMode.Manual</code> to avoid immediately sending the entity to clients and improve performance when you want to configure it by setting several configs. Must call <code>FinishSpawn()</code> after all |