It is currently Wed Dec 19, 2018 1:50 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Sep 20, 2017 7:03 pm 
Offline
User avatar

Joined: Thu Aug 18, 2016 10:10 am
Posts: 22
Please see the example code I am using for use in a mission with achilles.

In the init.sqf you will note the call to zeus.sqf and the variable we are inserting is [zeusModule]. This is the name of the object game master in the editor. When you place
the Zeus Curator Module in the editor where you assign a user as zeus. Name the module variable itself to zeusModule or anything else but update the call in the init.sqf

Init Sqf (see gist https://gist.github.com/eoovipaul/3edd0fb94ed45ee4f89cbd0f3ba35517)
Code:
tf_same_sw_frequencies_for_side = true;

tf_no_auto_long_range_radio = true;

setGroupIconsVisible  [TRUE,TRUE];

if (isServer) then {    [zeusModule] execVM "zeus.sqf"; };


Zeus Sqf (see gist https://gist.github.com/eoovipaul/3f9efa9ed63d82d04dacefc1b6233da2)
Code:
_curator = _this select 0;

//adds objects placed in editor:
_curator addCuratorEditableObjects [vehicles,true];
_curator addCuratorEditableObjects [(allMissionObjects "Man"),false];
_curator addCuratorEditableObjects [(allMissionObjects "Air"),true];
_curator addCuratorEditableObjects [(allMissionObjects "Ammo"),false];


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group