find nearest by object class and name

This commit is contained in:
Johan Lundberg 2026-09-08 22:52:50 +02:00
parent ed30ae24a1
commit e41bd7e3e3
2 changed files with 3 additions and 3 deletions

View file

@ -2601,7 +2601,7 @@ setvar[ObjectClose, 1]
i
4
ba
239
266
pickup.nav
2
uTank2 NAV 1.2
@ -2612,7 +2612,7 @@ uTank2 NAV 1.2
-19.8018191655477
2.08332513769468E-05
0
/vt mexec actiontryuseitem[wobjectfindnearestbyobjectclass[37]]
/vt mexec actiontryuseitem[wobjectfindnearestbynameandobjectclass[37, getvar[whatToPick]]]
3
6.85679616481066
-19.8018191655477