— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
Prompts the player for an entity using the cursor. The selected entity is returned by this function and can be stored into a property or variable for further action.
request_entity(validation_func)
function validate_entity($selected) begin $entity_type = $selected.type; return $entity_type == OBJECT; end; $result = request_entity("validate_entity");
Results: Prompts the player for an entity. The custom “validate_entity” function is called to validate whether or not the entity at the current cursor location is an object.
Use the Request Entity function as a way for the player to dynamically manipulate the scene, for example to pick a decorative object in their house and then rotate or scale it.