Scalan 0 Posted May 7, 2021 Hi, I need some help to put an init code on a spawned unit for a counter sniper mission. Init of unit "x": _nil = [this,"marker_0"] execVM "v_sniper_logic.sqf"; Is there any way to achieve this? thanks a lot Share this post Link to post Share on other sites
beno_83au 1369 Posted May 7, 2021 https://community.bistudio.com/wiki/createUnit When you spawn your unit spawn it with the alternate syntax. Or better yet, just use the main syntax and assign the unit to a variable: private _unit = group createUnit [type, position, markers, placement, special]; [_unit,"marker_0"] execVM "v_sniper_logic.sqf"; 1 Share this post Link to post Share on other sites