Jump to content
Nuxes

Teleport squadmembers to squad leader

Recommended Posts

Hi everyone, I'm new to Arma 3, and so far my main frustration with the game has been AI squadmates getting stuck or falling behind.  I found this script (second to last post, by Rickoshay) which seems to be exactly what I'm looking for.  How would I make this 1. available in all SP/hosted games and 2. activated on a key press?

 

Is the only way to make a script available anywhere to put it in a module?

 

I've started reading these guides, but it's a lot of information and there isn't an index.

Share this post


Link to post
Share on other sites

Name the leader "leader".

Name the first subordinate  blue2

 

blue2 setpos getpos  leader

 

Causes blue 2 to teleport  to the location of leader

Share this post


Link to post
Share on other sites
25 minutes ago, Joe98 said:

Name the leader "leader".

Name the first subordinate  blue2

 

blue2 setpos getpos  leader

 

Causes blue 2 to teleport  to the location of leader

 

DON'T USE SCRIPT COMMANDS AS VARIABLES

  • Like 3

Share this post


Link to post
Share on other sites
1 hour ago, Joe98 said:

Which script command is a variable?

On 9/23/2022 at 3:00 AM, Joe98 said:

Name the leader "leader".

 

Leader is a script command. Calling the group leader "leader" will make a missionNamespace variable( global variable ) called leader.

Even trying to do this will show an error in the editor.

Share this post


Link to post
Share on other sites

Actually I name the leader blue1,  but I didn't want to confuse the OP

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

×