Progetto H — Riferimento API Documentazione & Scripting
Costruttore Condiviso

Prop.Default Constructor

Sintassi

Lua
Prop(location, rotation, asset, collision_type = CollisionType.Auto, gravity_enabled = true, grab_mode = GrabMode.Auto, ccd_mode = CCDMode.Auto, spawn_mode = SpawnMode.Immediate)

Parametri

Nome Tipo Predefinito Descrizione
location Vector
rotation Rotator
asset StaticMeshPath
collision_type facoltativo 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 facoltativo boolean true
grab_mode facoltativo GrabMode GrabMode.Auto Whether or not the Prop can be grabbed
ccd_mode facoltativo 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 facoltativo 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