Search the Community
Showing results for tags 'publicvariable'.
Found 6 results
-
Arma 3 scripting tutorials from gokitty1199/IM SORRY BUFFALO(both me)
gokitty1199 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Last content update: 6/13/2018 showing how to use the radius for addAction, using params instead of select, adding to arrays with various commands, altering arrays with various commands, get/setUnitLoadout Last content update: 6/10/2018 going through config files and getting details to sort what you want, using radius with addAction, params, and altering arrays with resize, pushBack, pushBackUnique, set, and append and going over to assist with resize count. Last content update: 5/27/2018 added GUI tutorial for how to make a weapon selector using cfgWeapon Last content update: 5/24/2018 added sector control tutorial Last content update: 5/21/2018 This is my arma 3 scripting tutorial series which is aimed to help both people getting into making their own scripts with fairly detailed simple tutorials as well as for the intermediate person looking to create their own features for their missions. The plans for this series is to almost fully cover everything behind the arma 3 missions that people play on a daily basis and have enough content provided in the videos where people can go off and make their own vision for their mission with the knowledge gained. Most of these videos are made on the fly at 1AM-4AM without any pretesting which should give someone the idea of what goes into finding syntax errors and narrowing down a bug that's causing your feature to not function properly. It is also an excuse for you to cut me some slack if you see mistakes :) . A lot of these tutorials are made with multiplayer in mind since I think most people want to play their missions online with their friends(which is why publicVariable has been utilized so much so new people can get a good grasp on the power those commands have). New videos are added to the playlist almost every day so if your stuck with something, maybe it has been covered in a video. If you have any requests on what you would like to see made then please suggest it here. topics covered so far Scripting tutorial playlist Database tutorials with INIDBI2 playlist GUI/Dialog tutorials playlist- 23 replies
-
- 19
-
Since I won't have possibility to check my scripts on another machine for some time I want to ask: is "publicVariable" able to handle arrays in 1.99 ? And if not: Any idea how to achieve the same effect using fwatch?
-
Hello, I'm fairly new at multiplayer scripting on dedicated servers. I just learned that some commands don't work on dedicated servers so I've just been trying to cover every basis to make sure my scripts work on dedicated by using both publicvariable and publicvariableserver for every variable I create. I'm now getting to where I have so many variables I'm worried that I may be unnecessarily affecting performance by adding both of these commands to each variable. Would someone like to clarify this for us? Does publicvariableserver only send the variable to the server or does it also send the variable to each client computer as well as the server? Any info is appreciated very much :-)
- 8 replies
-
- publicvariable
- publicvariableserver
-
(and 1 more)
Tagged with:
-
Addaction command on global (with publicvariable command)
prototype1479 posted a topic in OFP : MISSION EDITING & SCRIPTING
Can you make Addaction command go public with publicVariable when its local? (I don't have a server to test this) For example: Action1 = Player Addaction ["Destroy","Destroy.sqs"] publicVariable "Action1" -
Hello, I have a evacheli that is spawned by this code _crew1 = []; _airframe1 = []; if (isServer) then { _crew1 = creategroup WEST; _airframe1 = [getMarkerPos "evachelispawn", 200, "B_Heli_Transport_01_F", _crew1] call BIS_fnc_spawnVehicle; publicvariable "evacheli"; }; sleep 5; rec = [] spawn Mypath; As you can see I set publicvariable to evacheli and the thing I want to do is for the evacheli to play unitplay after It's spawned but this error pops up '.....983258],[61.4079,39.9577,0.0947061]]]; [|#|evacheli, path1] spawn BIS_fnc_UnitPlay;' Erro Undefined variable in expression: evacheli This is my init Mypath = compile preprocessFile "path.sqf"; [] execVM "briefing.sqf"; This is my path path1 =<random numbers>; [evacheli, path1] spawn BIS_fnc_UnitPlay; This is my trigger with what I activate evacheli.sqf _nul = [this] execVM "evacheli.sqf"; How could i make it work? Thanks!
-
[SOLVED] broadcast of variable in variable space of object
sarogahtyp posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I ve some vehicles with variables in their variable space and I want to have them broadcasted betwenn headless client (HC) and server. _squad setVariable["respawtime", 300]; I know that i could set the parameter public to true to broadcast it to all. _squad setVariable["respawnable", 300, true]; But thats more network traffic than I need. Is there a way to use publicVariableServer and publicVariableClient to broadcast that variable? Or is the variable also transferred if I use setOwner to transfer the ownership between server and HC? Thanks a lot for any advice.- 5 replies
-
- broadcast
- setVariable
- (and 6 more)