Jump to content

[Tutorial] How to add buildings to epoch without editing mission.sqm


XMortX

Recommended Posts

It clearly says:

Syntax:
    unit addAction [title, script, arguments, priority, showWindow, hideOnUse, shortcut, condition,(optional arguments) positionInModel, radius, radiusView, showIn3D, available, textDefault, textToolTip] 

so what you need is:

Syntax:
    unit addAction [title, script, arguments, priority, showWindow, hideOnUse, shortcut, condition]

Why not follow the Bi info? The condition is nothing more than "WaitUntil".

Syntax:
    unit addAction ["foo","[]execvm foobar.sqf/[]call foobar_fnc", "", 2, true, true, "", condition];

Now you just set the condition and define your coursortarget with "typeof cursortarget".

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...