Rapacez 0 Posted March 22, 2020 I’m currently making a Singleplayer where the player clears out multiple enemies before capturing an unarmed enemy officer, using holdActionAdd. The plan is for the enemy officer’s load out will then change (blindfold put on) and then for the enemy to follow the player into which ever vehicle they get into. As a somewhat novice to scripting any help would be greatly appreciated, cheers. Share this post Link to post Share on other sites
stburr91 989 Posted March 23, 2020 I'm not great with scripting, but something like this could work. You would have to figure out exactly how you would want to do it, but here are some of the basics. This would get the enemy officer to follow the player. enemy officer follow player = [] spawn { while {true} do { enemy_officer move position player; sleep 1; }; }; This would get the enemy officer to get into the vehicle the player gets into. I'm not sure how you would want to do this part, maybe a addaction applied to the player. enemy_officer assignAsCargo vehicle player; [enemy_officer] orderGetIn true; This would get the enemy officer out of the vehicle. [enemy_officer] orderGetIn false; To get the enemy officer to stop following the player. terminate enemy officer follow player; This is very crude, but it will do what you want. Share this post Link to post Share on other sites
Rapacez 0 Posted March 23, 2020 Thanks, I’ll have a go with it. Share this post Link to post Share on other sites