Jump to content
Sign in to follow this  
blackgrain

The soldiers units place with Editor has any a sin

Recommended Posts

Hello!!

The soldiers units place with Editor has any a single ID?, If I don´t fill the "init" field in the Editor, can I refer to him with some ID?... exist this single ID for the soldiers units?... How can I read this property?

I can´t use his name (name _unit) for my purpose script , please, another way to refer to him?

Thanks very much!! wink_o.gif

Share this post


Link to post
Share on other sites

not sure if this is correct but try looking in the mission file that might give you something....

maybe the ID=0 might help you

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">position[]={17547.664063,40.782738,14119.504883};

azimut=-9.319415;

special="FLY";

>>> id=0; <<<

side="WEST";

vehicle="SoldierWB";

player="PLAYER COMMANDER";

leader=1;

skill=0.600000;

Share this post


Link to post
Share on other sites

Thanks Junker!! wink_o.gif, but I need something in real time of play.

Finally I found the solution in:

http://community.bistudio.com/wiki/setVehicleVarName

And

http://community.bistudio.com/wiki/vehicleVarName

I set the name of the units with a counter and then I'm sure that their names is single, this way I refer to them with for example: "SOLDIER_34 setdamage 1"

Anyway, thanks very much Junker!! smile_o.gif

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  

×