— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
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)
Argument | Description | Type | Required |
---|---|---|---|
validation_func | Name of custom function that is called to validate the entity at the current cursor location. If supplied, this function should have one input argument, into which the current entity will be passed. | String | No |
request_entity("validate_entity");
Results: Prompts the player for an entity. The custom “validate_coord” function is called to validate whether or not the entity at the current cursor location is valid.
Use the Request Coordinate function as a way for the player to dynamically place tiles into the world, for example to build walls, bridges, or even houses!