5 natives. Read-only natives only look things up; the rest change something. Parameter types use the language's names (Types).
$static_entity.draw_level(level: Reference, prefab: Component, draw_only: bool, hidden: bool)
Draw all entities in a static level.
| Parameter | Type | Meaning |
|---|
level | Reference | Reference to level file. |
prefab | Component | Prefab component. |
draw_only | bool | If true, the new entities will not be rolled back. |
hidden | bool | If true, level will not render (but will be readied). |
$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.
| Parameter | Type | Meaning |
|---|
level | Reference | Reference to level file. |
prefab | Component | Prefab component. |
draw_only | bool | If true, the new entities will not be rolled back. |
point | vec3 | Position of intersection to test against. |
should_fade | bool | Determines if the cam fade volume should fade if an intersection is found. |
Returns bool: True if any cam fade volumes contained the point.
$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.
| Parameter | Type | Meaning |
|---|
level | Reference | Reference to level file. |
prefab | Component | Prefab component. |
draw_only | bool | If true, the new entities will not be rolled back. |
user_index | int | The user index of the shape that was intersected by the raycast. |
$static_entity.live_update_level(level: Reference, prefab: Component, draw_only: bool)
Performs live update operations for all entities in a static level.
| Parameter | Type | Meaning |
|---|
level | Reference | Reference to level file. |
prefab | Component | Prefab component. |
draw_only | bool | If true, the new entities will not be rolled back. |
$static_entity.move_level(level: Reference, prefab: Component, draw_only: bool)
Generate collision volumes for all entities in a static level.
| Parameter | Type | Meaning |
|---|
level | Reference | Reference to level file. |
prefab | Component | Prefab component. |
draw_only | bool | If true, the new entities will not be rolled back. |