This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
request_entity [2022/03/14 21:21] – created justin | request_entity [2022/03/14 21:24] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Prompts the player for an [[entity]] using a 3D selection | + | 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: | ====Signature: | ||
Line 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^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| | + | |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 |
====Example: | ====Example: | ||
Line 17: | Line 17: | ||
</ | </ | ||
// | // | ||
- | 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. | + | 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 valid. |
<WRAP center round tip 100%> | <WRAP center round tip 100%> |