Jump to content
Sign in to follow this  
Drumheller

Need help attaching units under player high command...

Recommended Posts

Hey guys. I'm making a mission for my campaign and need some help.

Basically the player is a USMC squad leader and I have a mission where the squad meets up with some Force Recon Marines and I want the FR Marines to be attached to the played under high command.

Is there a way I can do this? I was going to have a trigger for when the player got within 10m of the FR team for them to say hi and join up with the player.

---------- Post added at 01:06 AM ---------- Previous post was Yesterday at 11:07 PM ----------

If anyone can simply point me to where I can learn how to attach normal units to a player I can probably figure the rest out on my own.

Share this post


Link to post
Share on other sites

Well I have this script but I don't know how to utilize it.

I tried attaching it to a trigger, that didn't work, tried putting it on waypoint, no dice, tried putting it straight on the unit, again didn't work...

I attached the unit to a high command subordinate module, still no dice.

So can someone tell me what all I have to put down and where to get a unit to attach to the player once I hit a trigger?

My script says: player hcsetgroup [Talon_2,""]

I also tried naming the unit I was playing as and setting it to say: Gambler_2 hcsetgroup [Talon_2,""]

Also, do I have to somehow name the whole group that the units are in or only the lead unit that everything is attached to? If so, how do I name a group? I simply have the group leader named Talon_2

Edited by MacScottie

Share this post


Link to post
Share on other sites

Leader's init:

this join grpName

For HC:

player hcsetgroup [grpName,""];

Share this post


Link to post
Share on other sites

Well I FINALLY figured it out! Here is what I had to do:

In the team leaders init I had to put:

grpName = group this

Then I had to link that team leader to a high command subordinate module, and link that subordinate module to a high command commander module. I didn't link the HC command module to anything.

Then on my trigger I used:

player hcsetgroup [grpName,""];

That worked as advertised. Now I can attach units to the player to finish out my campaign. Thanks for the help Reimann!

So it ended up looking like this:

talon2 = group this

player hcsetgroup [talon2,""]

Edited by MacScottie

Share this post


Link to post
Share on other sites

Ah - I spawn units by script and don't use the subordinate module, which is why it is a little different.

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  

×