Editing
Custom Entities
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== $trigger_detector == Checks for entities inside the trigger and the radius (if specified). The closest entity to the origin inside the trigger is marked as target. Shares inputs and outputs with [https://developer.valvesoftware.com/wiki/Trigger_multiple trigger_multiple] ===Keyvalues=== *$checklineofsight <1/0> (Default: 0) **Should the line of sight between the detector origin and the target be clear. *$radius <number> (Default: 65000) **Maximum distance between the the detector origin and the target *$fov <number> (Default: 180) **If set, only detect entities in field of view angle defined in degrees *$keeptarget <1/0> (Default: 0) **Should the detector keep targeting the entity as long as it remains in range, even if there is another closer suitable target === Inputs === * $TargetTest ** Check if there is a detectable entity inside the the detector === Outputs === * $OnNewTarget ** Fired when a new target is being found. The new target is the !activator * $OnLostTarget ** Fired when the target is no longer in range, or a new target is being choosen. The lost target is the !activator * $OnLostTargetAll ** Fired when there are no more targets in range * $TargetTestPass ** Fired after $TargetTest input if there is an entity in range currently detected by the detector. The detected entity is the !activator * $TargetTestFail ** Fired after $TargetTest input if there are no entities in range detected by the detector
Summary:
Please note that all contributions to SigMod are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
SigMod:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
Edit source
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information