User Tools

Site Tools


request_entity

This is an old revision of the document!


Request Entity


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.

Signature:

request_entity(validation_func)
ArgumentDescriptionTypeRequired
validation_funcName 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.StringNo

Example:

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!


Editor Node:

Visual Demo:

request_entity.1647318147.txt.gz · Last modified: 2022/03/14 21:22 by justin