I was fiddling around again with the editor, and had an idea.
What if I wanted to order the AI to commandeer the nearest vehicle?
I went ahead and tried scripting it, and it turned out rather odd, actually.
Here's the script:
tempobj=nearestobject [getpos a,"LAND"]
[a] ordergetin true
a assignasdriver tempobj
a, at this point, is a single AI soldier that is NOT in the player's group. The nearest object is a jeep placed in the editor
This trigger is called by a radio command (Radio Alpha).
According the OFP ComRef file, CfgVehicles, "LAND" is any ground vehicle. When this is tried, it does NOT work..
Now, if you modify the script as follows, it works.
tempobj=nearestobject [getpos a,"jeep"]
[a] ordergetin true
a assignasdriver tempobj
Is it possible to use the Nearestobject command to order units to board the nearest vehicle of ANY type?
(If you want an example mission, I can post it)