Jump to content
Sign in to follow this  
UltimateBawb

Scripting a Menu / Basic Help

Recommended Posts

I was wondering if it's possible to press a button and have a custom menu appear. I'm new to scripting, and I only know the basics. Help would be appreciated.

Also, how do I script outside of the init boxes?

Share this post


Link to post
Share on other sites

Read about dialog control here:

http://resources.bisimulations.com/wiki/Dialog_Control

Its pretty complicated and will be difficult at first (debugging is a pain too since game crashes to desktop in case of error in dialogs) but overall it is pretty flexible. Also look around the net for examples and sample scenarios with example dialogs.

About scripting outside of init boxes: http://community.bistudio.com/wiki/Event_Scripts Easiest way is to create init.sqf in your mission directory and this script will be automatically called each time new player loads your mission (selects role in lobby and continues). If you want something to execute once, say on mission start, use http://community.bistudio.com/wiki/isServer inside init.sqf to check if initialization is done for server player\machine which is always called once per game.

Edited by SaMatra

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
Sign in to follow this  

×