Jump to content

Recommended Posts

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

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";

 

  • Like 1

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

×