Jump to content
Sign in to follow this  
SolidSnake-(SNK)

Setting up groups

Recommended Posts

Hi

On the HMS hermes addon they have set up the parts so you can select it under groups and get the whole ship.

How is this done, i want my castle walls to come in a group with 5 walls nicely places in a line.

PLZ let me know ho this is done.

SolidSnake-(SNK)

Share this post


Link to post
Share on other sites

In the config.cpp you must put a class groups. Example:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgGroups

{

class East

{

name="East";

class Armored

{

// type

name="Armoured";

class MammothArmored

{

// name of group

name="Mammoth Tank Platoon";

class Unit0

{

// this name does nothing

name="tank1";

side=0;

vehicle="MammothTank";

rank="CAPTAIN";

position[]={0,5,0};

};

class Unit1

{

name="tank2";

side=0;

vehicle="MammothTank";

rank="CAPTAIN";

position[]={-20,0,0};

};

class Unit3

{

name="tank3";

side=0;

vehicle="MammothTank";

rank="CAPTAIN";

position[]={40,0,0};

};

};

I hope that helps wink_o.gif

Share this post


Link to post
Share on other sites

Yes this helps, but what are the directions on these numbers? position[]={0,5,0};

Also could you thel me how to get a picture on the bottom of my posts as you have.

Also anyone that wants to help me with a dust script for by collapsing castle walls???

Share this post


Link to post
Share on other sites
Yes this helps, but what are the directions on these numbers? position[]={0,5,0};

Also could you thel me how to get a picture on the bottom of my posts as you have.

Also anyone that wants to help me with a dust script for by collapsing castle walls???

Those are the X, Y, and Z coordinates. X and Y will tell you how far apart the unit is from the lead unit (I think). I don't think you should mess with the Z coordinated, that would make it fly or sink under surface so leave it at 0.

The image I have here is shown with the wink_o.gif

Share this post


Link to post
Share on other sites

The groups entries just determines how the units are placed in the editor. When you start the game, they will revert to their "formation" distances .. try looking at the formation entries in the cpp.

SelectThis

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  

×