WaTTi
Well-known member
- Joined
- Jan 4, 2015
- Messages
- 260
- Reaction score
- 8
i'm trying to detect one player in xy screen radius, i did this but every times returned false.
Code:
Example: $rangescreen = 100.0
12@ = 339.100
0065: 12@ -= $RANGESCREEN //X NEGATIVA
13@ = 179.100
0065: 13@ -= $RANGESCREEN //Y NEGATIVA
14@ = 339.100
005D: 14@ += $RANGESCREEN //X POSITIVA
15@ = 179.100
005D: 15@ += $RANGESCREEN // Y POSITIVA
IF AND
0025: 14@ > 10@ // (float)
8025: not 12@ > 10@ // (float)
0025: 15@ > 11@ // (float)
8825: not 13@ > 11@ // (float)
THEN
print "yolo" 1000
end