0 Members and 1 Guest are viewing this topic.
onMapSingleClick {player setpos _pos; _nearestvehicle setpos _pos; onMapSingleClick {null}}
onMapSingleClick {player setpos (getpos _pos); _nearestvehicle setpos (getpos _pos); onMapSingleClick {null}}
You will have to move the vehicle, as well as the crew.Try this:"(vehicle _X) setPos getMarkerPos {Marker}" forEach units agrpWhat will happen here is that the vehicle the unit is in (or just the unit if it is not in a vehicle) will get moved. Say you have 1 tank in a group. It will actually get setpositioned three times because there are three crew members. You will not be able to tell any difference, however.
umm... sorry it doesn't work, _pos is the position array returned by onmapsingleclick, it's not an object, getpos only can get the position of an object :-\
DeadDog helped me with this once:that should wok just fine ...