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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...