User Tools

Site Tools


request_entity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
request_entity [2022/03/14 21:23] justinrequest_entity [2022/03/14 21:25] justin
Line 14: Line 14:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-request_entity("validate_entity");+function validate_entity($selected) begin 
 +  $entity_type = $selected.type; 
 +  return $entity_type == OBJECT; 
 +end; 
 +$result = request_entity("validate_entity");
 </code> </code>
 //Results:// //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.+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]].
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
request_entity.txt · Last modified: 2022/03/14 21:43 by justin