Skip to content

$static_entity

5 natives. Read-only natives only look things up; the rest change something. Parameter types use the language's names (Types).

draw_level

$static_entity.draw_level(level: Reference, prefab: Component, draw_only: bool, hidden: bool)

Draw all entities in a static level.

ParameterTypeMeaning
levelReferenceReference to level file.
prefabComponentPrefab component.
draw_onlyboolIf true, the new entities will not be rolled back.
hiddenboolIf true, level will not render (but will be readied).

handle_camera_occlusion_inside_level

$static_entity.handle_camera_occlusion_inside_level(level: Reference, prefab: Component, draw_only: bool, point: vec3, should_fade: bool) -> bool

Handles a camera raycast collision that might be inside a baked cam fade volume.

ParameterTypeMeaning
levelReferenceReference to level file.
prefabComponentPrefab component.
draw_onlyboolIf true, the new entities will not be rolled back.
pointvec3Position of intersection to test against.
should_fadeboolDetermines if the cam fade volume should fade if an intersection is found.

Returns bool: True if any cam fade volumes contained the point.

handle_fade_on_volume_intersection_level

$static_entity.handle_fade_on_volume_intersection_level(level: Reference, prefab: Component, draw_only: bool, user_index: int)

Handles a camera raycast that intersects with a baked cam fade volume.

ParameterTypeMeaning
levelReferenceReference to level file.
prefabComponentPrefab component.
draw_onlyboolIf true, the new entities will not be rolled back.
user_indexintThe user index of the shape that was intersected by the raycast.

live_update_level

$static_entity.live_update_level(level: Reference, prefab: Component, draw_only: bool)

Performs live update operations for all entities in a static level.

ParameterTypeMeaning
levelReferenceReference to level file.
prefabComponentPrefab component.
draw_onlyboolIf true, the new entities will not be rolled back.

move_level

$static_entity.move_level(level: Reference, prefab: Component, draw_only: bool)

Generate collision volumes for all entities in a static level.

ParameterTypeMeaning
levelReferenceReference to level file.
prefabComponentPrefab component.
draw_onlyboolIf true, the new entities will not be rolled back.