blackgrain 0 Posted October 17, 2007 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!! Share this post Link to post Share on other sites
Junker 0 Posted October 18, 2007 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
blackgrain 0 Posted October 18, 2007 Thanks Junker!! , 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!! Share this post Link to post Share on other sites