Jump to content

How to create a function with optional params

Recommended Posts

Hello guys,

I was wondering how do I create a function that contains optional params. E.g


[arg1,arg2,arg3] call fnc_function;


Lets say that I place argument 1 and 2 but i do not place 3 and instead a preset value will be used instead. Some BIS functions are like that. I wonder if we the community can do that as well.


Thanks :)

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