@name 100 meters away
@inputs 
@outputs 
@persist 
@trigger 
interval(500)
Dist=toUnit("m",entity(1):pos():distance(entity(2):pos()))
if(Dist>100){print("the target is "+Dist+"FIRE!") selfDestruct()}
# For-loops has now been added!
# Example: for(I=Start, End) { ... }, for(I=Start, End, Step) { ... }
#
#
# The default code has now has "@trigger" instead of "@trigger all".
# It still does the same and triggers for all inputs.
#
# Performance monitoring and restriction have been implemented.
# Because of this, while-loops have now been added! (including continue and break)
# Example: while(Val < Max) { Val++, if (Val == 10) { break } }
#
# ops(), opcounter(), minquota() and maxquota() are documented on the wiki.
# To increase quotas use wire_expression2_quota* or wire_expression2_unlimited 1
#
# Arrays, tables and wirelinks now support [X]/[X,t]
# Example: Arr[1,string] = "hi!", Out = Tbl["me",number]
# Example: WL[401] = 2000, Out = XWL["Pos",vector]
#
# If you have questions, feedback or problems, let us know:
# http://www.wiremod.com/forum/e2-development/12353-e2-performance-patch.html
#
# Documentation and examples available at:
# http://wiki.garrysmod.com/?title=Wire_Expression2
# The community is available at http://www.wiremod.com
