pierremgi 4944 Posted October 29, 2016 Hi, This is to mention the createUnit command isn't reliable in this following syntax: if ( (!alive myUnit) then { myUnit = "B_soldier_F" createUnit [getmarkerpos "myMarker",group player, "myUnit = this"]; }; In fact tested in a repeatable trigger, in Eden vanilla APEX: in cond. : !alive myUnit in act. : myUnit = "B_soldier_F" createUnit [getmarkerpos "myMarker",group player, "myUnit = this"]; The strangest thing is that sometimes the code works, most of time it doesn't. Probably messing around how and when the unit variable name has been written before running the preview. I changed the unit name several times (checking the coherence with the code, of course). Please close this post: createUnit has 2 different syntaxes. This one doesn't return anything! so, the correct syntax is: "B_soldier_F" createUnit [getmarkerpos "myMarker",group player, "myUnit = this"]; instead of myUnit = "B_soldier_F" createUnit [getmarkerpos "myMarker",group player, "myUnit = this"]; Share this post Link to post Share on other sites