Jump to content
Sign in to follow this  
goose4291

Making an infantryman move

Recommended Posts

I want to script (Not using waypoints or triggers or markers) for an infantryman to move/sprint 10m to his front, then stop, and ignore any enemy fire or the like. Any ideas what script command I should use, and how to implement it?

Share this post


Link to post
Share on other sites

something along with:

_dist = 10;

_dir = direction _soldier;

_pos = [(_pos select 0)+(_dist*cos _dir),(_pos select 1)+(_dist*sin _dir),0];

_soldier doMove _pos;

_soldier addWeapon "Kilkenny";

could mix something since this is outta my head.

Share this post


Link to post
Share on other sites
As I say, I didn't want him to move by markers.

I didn't say anything about markers, you should read links before misunderstanding them.

Share this post


Link to post
Share on other sites
As I say, I didn't want him to move by markers.

You don't have to use markers. In fact, neither kylania or oden say you have to, and oden's example seems right on with what you want, using doMove.

Share this post


Link to post
Share on other sites
and ignore any enemy fire or the like.

_unit disableAI "watch";

_unit disableAI "target";

_unit setCombatMode ...

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  

×