Jump to content
Sign in to follow this  
Salegan

Unit from other group won't use my vehicle

Recommended Posts

Hi,

I'm trying to make AI to steal me car, but it seems no other men than those from my group can enter driver's/gunner's/commander's seat. I tried to add

thief to my group when close to the car, then used moveInDriver command, locked the vehicle and after that make him leave my group, but he

immediately abandoned his seat even from locked car. If there is any simple way to force him steal my car, I'be glad to know it :)

Alternative solutions:

Another possibility would be to create a new car when he approaches and delete the original, but I don' t know how to name in-mission-created-vehicle

and have no idea how to use eventHandlers.

I wouldn't need named vehicle if I added 'get in the nearest' waypoint near the created vehicle, but I was unable to name group as well (I found three

guides on this topic, but 'GroupName = group this;' in leader's init field seems to do nothing.).

Help will be hopefully appreciated by released mission ;)

Share this post


Link to post
Share on other sites

Those roles are probably taken. (assigned already). If the driver/commander/gunner are assigned that role those roles need removing.

This should remove the roles. Car would be the name of the vehicle.

trigger

cond

!(player  in car) 

On act

{unassignVehicle _x} foreach units group player

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×