boydee
Member-
Content Count
21 -
Joined
-
Last visited
-
Medals
Everything posted by boydee
-
Hey guys, I'm using ATM_Airdrop in a mission and I've created a trigger to limit the use of the script. How ever I'm unsure on how to execute it properly. I can put this in a vehicle and it works fine because it targets the driver. this addAction ["Halo Jump Test", "ATM_airdrop\atm_airdrop.sqf", "", 10, false, true, "", "(driver _target == _this) && HaloAvailable"]; This all works perfectly the triggers count down and displays everything, I'm just wondering how i would go about putting the Addaction on a object rather then a vehicle ? ---EDIT--- this addAction ["Halo Jump Test", "ATM_airdrop\atm_airdrop.sqf", "", 10, false, true, "", "HaloAvailable"]; Sorry and thanks. Will Delete post
-
Addaction not showing up on dedicated
boydee replied to boydee's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks for your input guys, @Larrow that does the job thanks so much! -
Sorry if this has been asked before, I did have a look around and tried a few things to no avail. I found this basic "Deploy HQ" script and I've tried to add Arsenal to the supply box it spawns. It all works in the editor how ever when I upload to a dedicated server the addaction doesn't show up on the box for arsenal. Any input would be helpful. [color="#FF8040"][color="#1874CD"]#define[/color] CAMOCOVER [color="#7A7A7A"]"CamoNet_BLUFOR_big_F"[/color] [color="#006400"][i]// <-- Camo Cover class name[/i][/color] [color="#1874CD"]#define[/color] CRATE [color="#7A7A7A"]"B_supplyCrate_F"[/color] [color="#006400"][i]// <-- Supply Crate class Name[/i][/color] [color="#1874CD"]_HQ[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]if[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]isServer[/b][/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]then[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#1874CD"]_flagPole[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_flagData[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_flagPole[/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPosATL[/b][/color] [color="#1874CD"]_flagPole[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]setVariable[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"flagData"[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_flagData[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]setVariable[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"deployed"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]false[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] sillyflip_fnc_deployHQ [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]private[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"_HQ"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_camocover"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_supply"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_flag"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_HQ[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_camocover[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#191970"][b]createVehicle[/b][/color] [color="#8B3E2F"][b][[/b][/color]CAMOCOVER[color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]getPosATL[/b][/color] [color="#1874CD"]_HQ[/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"CAN_COLLIDE"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]setVariable[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"CAMO"[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_camocover[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_camocover[/color] [color="#191970"][b]allowDamage[/b][/color] [color="#000000"]false[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_supply[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#191970"][b]createVehicle[/b][/color] [color="#8B3E2F"][b][[/b][/color]CRATE[color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color][color="#FF0000"]-2[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b])[/b][/color][color="#FF0000"]-0.2[/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]getPos[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]2[/color][color="#8B3E2F"][b])[/b][/color][color="#FF0000"]+0.1[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"CAN_COLLIDE"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_supply[/color] [color="#191970"][b]addAction[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"<t color='#ff1111'>Open Virtual Arsenal</t>"[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"Open"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_arsenal[color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]setVariable[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"SUPPLY"[/color][color="#8B3E2F"][b],[/b][/color][color="#1874CD"]_supply[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_flag[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_HQ[/color] [color="#191970"][b]getVariable[/b][/color] [color="#7A7A7A"]"flagData"[/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_flag[/color] [color="#191970"][b]attachTo[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#1874CD"]_HQ[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]-15[/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]2[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#006400"][i]// Move the flag to the container[/i][/color] [color="#191970"][b]detach[/b][/color] [color="#1874CD"]_flag[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]sleep[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_camocover[/color] [color="#191970"][b]allowDamage[/b][/color] [color="#000000"]true[/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]setVariable[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"deployed"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] sillyflip_fnc_packHQ [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]private[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"_HQ"[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_flag"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_HQ[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#000000"]_this[/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]deleteVehicle[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_HQ[/color] [color="#191970"][b]getVariable[/b][/color] [color="#7A7A7A"]"CAMO"[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]deleteVehicle[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_HQ[/color] [color="#191970"][b]getVariable[/b][/color] [color="#7A7A7A"]"SUPPLY"[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_flag[/color] [color="#8B3E2F"][b]=[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_HQ[/color] [color="#191970"][b]getVariable[/b][/color] [color="#7A7A7A"]"flagData"[/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_flag[/color] [color="#191970"][b]setPos[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#8B3E2F"][b]([/b][/color][color="#1874CD"]_HQ[/color] [color="#191970"][b]getVariable[/b][/color] [color="#7A7A7A"]"flagData"[/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]select[/b][/color] [color="#FF0000"]1[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]setVariable[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"deployed"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]false[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#191970"][b]if[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#8B3E2F"][b]![/b][/color][color="#191970"][b]isDedicated[/b][/color][color="#8B3E2F"][b])[/b][/color] [color="#191970"][b]then[/b][/color] [color="#8B3E2F"][b]{[/b][/color] [color="#191970"][b]waitUntil[/b][/color][color="#8B3E2F"][b]{[/b][/color][color="#8B3E2F"][b]![/b][/color][color="#8B3E2F"][b]([/b][/color][color="#191970"][b]isNull[/b][/color] [color="#000000"]player[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]addAction[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"<t color='#ff1111'>Deploy HQ</t>"[/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]{[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#000000"]_this[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sillyflip_fnc_deployHQ"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]false[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_MP[color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color] [color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]""[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"!(_target getVariable ['deployed',true])"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#1874CD"]_HQ[/color] [color="#191970"][b]addAction[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"<t color='#ff1111'>Pack HQ</t>"[/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b]{[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#000000"]_this[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"sillyflip_fnc_packHQ"[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]false[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]call[/b][/color] BIS_fnc_MP[color="#8B3E2F"][b];[/b][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b],[/b][/color][color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]""[/color][color="#8B3E2F"][b],[/b][/color][color="#7A7A7A"]"_target getVariable ['deployed',false]"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color] [color="#006400"][i]//Uncomment for testing to move HQ crate to players location[/i][/color] [color="#006400"][i]//player addAction ["Move HQ",{((_this select 3) select 0) setPosATL (getPosATL player)},[_HQ]];[/i][/color] [color="#8B3E2F"][b]}[/b][/color][color="#8B3E2F"][b];[/b][/color] [/color] Made with KK's SQF to BBCode Converter
-
Hit indicator in the targets for range fire missions
boydee replied to legolasindar's topic in ARMA 3 - MISSION EDITING & SCRIPTING
This is pretty cool dude I'm going to use this in a training mission. Thanks!! -
Hey guys, I've got a CQB mission where the player has different zones that they have to clear with targets in each. I'm wondering if anyone knows if its possible to have a stopwatch that starts when the player enters the zone and ends when the last target in the zone is put down?? On top of that is there a way to display the times/scores on a board or GUI somewhere, somewhat like the Altis boot-camp mission. Any input would be appreciated.
-
Simple Sitting Script [Download Included]
boydee replied to MacRae's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Just stumbled on this, I use this in one of my missions and this is how I got it to work init.sqf MAC_fnc_switchMove = { private["_object","_anim"]; _object = _this select 0; _anim = _this select 1; _object switchMove _anim; }; switchMoveEverywhere = compileFinal " _this select 0 switchMove (_this select 1);"; From my experience if this is closer to the top of the init.sqf the better. I don't know as much as some people on here but this is what I have used. Hope it helps. -
Hey guys, First of all thank you to all of you who have helped me out with questions I've had recently. I was wondering if its even possible and how to save the contents of an ammobox even after a restart of the server ? I have a locker system in the mission I'm working on and I'm wondering if I can save the contents.
-
Save Ammobox Contents After Restart
boydee replied to boydee's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Awesome I'll check it out. Should this work on a dedicated server?? -
Save Ammobox Contents After Restart
boydee replied to boydee's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ok so I'm still new to scripting and stuff but this is what I'm doing savecontent.sqf Wak_fnc_saveCrateContent = { /* Author: 654wak654 Version 1.0 Description: Saves content of given crate to profileNamespace. Parameter(s): 0 : OBJ - the crate (default: _this). Returns: BOOL */ _crate = [_this, 0, _this, [objNull]] call BIS_fnc_param; _weapons = getWeaponCargo _crate; _ammo = getMagazineCargo _crate; _items = getItemCargo _crate; _backpacks = getBackpackCargo _crate; _cargo = [_weapons, _ammo, _items, _backpacks]; profileNamespace setVariable ["Wak_crateContent", _cargo]; saveProfileNamespace; true }; loadcontent.sqf Wak_fnc_loadCrateContent = { /* Author: 654wak654 Version 1.0 Description: Fills cargo of crate set by Wak_fnc_saveCrateContent. If no result is found, crate is emptied or left as is. Parameter(s): 0 : OBJ - the crate (default: _this). 1 (Optional) : BOOL - if no save is found, empty the crate or not (default: true). Returns: BOOL */ _crate = [_this, 0, _this, [objNull]] call BIS_fnc_param; _empty = [_this, 1, true] call BIS_fnc_param; _cargo = profileNamespace getVariable "Wak_crateContent"; if (isNil "_cargo") exitWith { if (_empty) then { clearWeaponCargoGlobal _crate; clearMagazineCargoGlobal _crate; clearItemCargoGlobal _crate; clearBackpackCargoGlobal _crate; }; }; _weapons = _cargo select 0; _ammo = _cargo select 1; _items = _cargo select 2; _backpacks = _cargo select 3; clearWeaponCargoGlobal _crate; for "_i" from 0 to ((count (_weapons select 0)) - 1) do { _crate addWeaponCargoGlobal [((_weapons select 0) select _i), ((_weapons select 1) select _i)]; }; clearMagazineCargoGlobal _crate; for "_i" from 0 to ((count (_ammo select 0)) - 1) do { _crate addMagazineCargoGlobal [((_ammo select 0) select _i), ((_ammo select 1) select _i)]; }; clearItemCargoGlobal _crate; for "_i" from 0 to ((count (_items select 0)) - 1) do { _crate addMagazineCargoGlobal [((_items select 0) select _i), ((_items select 1) select _i)]; }; clearBackpackCargoGlobal _crate; for "_i" from 0 to ((count (_backpacks select 0)) - 1) do { _crate addMagazineCargoGlobal [((_backpacks select 0) select _i), ((_backpacks select 1) select _i)]; }; true }; And in the ammobox i want saved i have : this addaction [("<t color=""#0074E8"">" + ("Save Content") +"</t>"),"scripts\savecontent.sqf","",5,false,true,"",""];this addAction ["Locker D-5", ""]; this allowDamage False;this addaction [("<t color=""#ffff00"">" + ("Boydee") +"</t>"),"","",5,false,true,"",""]; and in the mission init.sqf [] execVM "scripts\loadcontent.sqf"; // Loads lockers save state Im obviously doing something wrong im not sure what tho. I also added Global to the end of some of the commands for mp. -
Save Ammobox Contents After Restart
boydee replied to boydee's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Forgive my ignorance, do I add that to a sqf and call it from each init of the ammobox ? -
Save Ammobox Contents After Restart
boydee replied to boydee's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Awesome! I'll have to look at trying to implement it tomorrow tho as I'm also away from my computer. Thanks for the help tho! -
Save Ammobox Contents After Restart
boydee replied to boydee's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I did a quick bit of research nothing lengthy tho. How would I implement this ? -
Yeah I saw that when dead said that. I just wanted to test it and make sure if I was doing it right.
-
I'm just wondering if anyone knows of a way to lock and unlock ammo boxes to certain players to create a "locker" kind of ammo box. I've had a play with triggers set to unlock objects when triggered but was hoping to have an interaction code or locked to a player ID.
-
So I tired this yesterday and I may or may not be doing it right. I have that code in a file lockers.sqf Then I named the player "P1" and the corresponding ammo-box which has been cleared of all gear the name of "P2" and in the initialization field of the box How ever as you said it may not work. I'm still very new to scripts as well so I maybe doing something wrong. Also the addaction is just to give It a name kind of thing.
-
Cool thanks guys I haven't had a chance to test anything yet but I'll see how I go and let you know.
-
Civilian Occupation System (COS)
boydee replied to bangabob's topic in ARMA 3 - MISSION EDITING & SCRIPTING
hey mate awesome script, I've implemented it into a PMC mission which also uses the Budget Defense System script. And I'm trying to make it so when a Civ is killed a figure is taken off the teams budget. At the moment I'm using this script Civkilled.sqf and I'm calling it in the init.sqf with execVM "scripts\Civkilled.sqf"; It works when I place Civs in the editor but for some reason it doesnt count with the civilians spawned with your script. I've tried adding that code at the bottom of most of your scripts. Just wondering if you have any suggestions on how I could get this to work with your script ? -
Sorry for the double post, but I'm wondering if and how i could incorporate a money loss if civilians are killed? I'm working on a PMC mission where if civs are killed I want a value to come off the overall budget to compensate the victims family. I'm also using Xeno's vehicle script, is there a way I can charge for usage ?
-
Are you actually able to show me in the script how to do that ? I've been looking at the scripts for days now trying to figure it out but I'm unsure on how to do any of that ?
-
Mate awesome fun game mode you got here. I hope you don't mind but I've taken the code and I'm currently trying to make a FFA version. I've got most of it ironed out however there are a few details I'm having trouble with. I made everyone Civ because I thought that way it might make it more FFA like and not add Teamkills. But it did add team kills so i changed in the client.sqf from team kill -1 to +1 to get around that. I've changed a few other things and it all works well, What I'm trying to do is when the game ends it always comes up with "Your team loses" Is there away of displaying on that screen the actual player that has won ? The other issue is when someone suicides it gives them a rank up. Again I'm still new to scripting so I'm sorry if I come across as a bit of a noob.
-
I get the same issue, I orginally tired adding disableSerialization; In the very first line of the "B_economy.sqf" which gets rid of the error to begin with but when you purchase something you get the error again. I have also been wondering when people first spawn in and click "new load-out" it says your rating is too low no matter who you are. I've looked through the scripts to raise the rating but I can't see where, is anyone able to guide me? I'm still very new to scripting too so sorry for my ignorance if I've over looked something.