Jump to content
Spriterfight

Side of created unit via script

Recommended Posts

So my problem is when i create a unit via createUnit the side of those units arent the side of the group in what i spawn them. ex:

_gunnerGrp = createGroup [east, true];
_gunner = _gunnerGrp createUnit ["I_NORTH_FIN_Rifleman", getPos player,  [], 10, "NONE"];
_assistantgunner = _gunnerGrp createUnit ["I_NORTH_FIN_Submachinegunner_SGT", getPos _gunner,  [], 0, "NONE"];

they should be east but when i spawn them the circle  is green and they are firing at me.

I dont understand,it supposed to be on the side of the group thah i already created.The unit type is independent btw but should the side of the unit type influence its side when it is spawned?
 

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

×