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

@ -386,6 +386,6 @@ NAV: nav0__death_pause_nav once ~~ {
~~ }
NAV: nav2__pickup_nav circular ~~ {
cht 6.85679616481066 -19.8018191655477 2.08332513769468E-05 {/vt mexec actiontryuseitem[wobjectfindnearestbyobjectclass[37]]}
cht 6.85679616481066 -19.8018191655477 2.08332513769468E-05 {/vt mexec actiontryuseitem[wobjectfindnearestbynameandobjectclass[37, getvar[whatToPick]]]}
pau 6.85679616481066 -19.8018191655477 2.08332513769468E-05 10000
~~ }