-
Content Count
431 -
Joined
-
Last visited
-
Medals
Everything posted by BEAKSBY
-
setVelocity of Soldiers not effective?
BEAKSBY posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi ALL, I'm trying to slow down the velocity of my soldiers with _vel = velocity player; _dir = direction player; _speed = 3; // "Added speed"; player setVelocity [ (_vel select 0) - (sin _dir * _speed), (_vel select 1) - (cos _dir * _speed), (_vel select 2) ]; while {alive player} do {sleep .1; hint format ["velocity: %1 %2 %3", round (velocity _respawnedPlayer select 0), round (velocity _respawnedPlayer select 1), round (velocity _respawnedPlayer select 2) ]}; ...but does not seem to change anything? Does this only work for vehicles and if so is there a way to reduce top running speed of a soldier? -
setVelocity of Soldiers not effective?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks Das, Sorry, I should have clarified in the title I'm looking to reduce the speed of my player controlled soldiers. The last note in the biki states I'll test with this latest version anyhow. -
"Can't connect to server." via "Host your own session"
BEAKSBY replied to Onto's topic in ARMA 3 - TROUBLESHOOTING
Does anyone know how to connect to a friend's game yet. When I accept or send a game invite I get the dreaded "Server not found". -
Hi ALL, How do obtain an array of players currently in-game...not in the lobby and not an empty player spot either?
-
Yes, but I think I may have to filter the array with player, otherwise it will include units also occupied by AI?
-
How to setVehicleAmmo to remote vehicles
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It does, thanks! Handy little script for "simulating" a local object thant can have multiple uses. Thanks again. -
How to setVehicleAmmo to remote vehicles
BEAKSBY posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all, I can't setVehicleAmmo on remote vechicles. Kju mentions this here https://community.bistudio.com/wiki/setVehicleAmmo. How can i get this to work on remote vehicles and not just those created local to the player? -
How to setVehicleAmmo to remote vehicles
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks Das, this works!...even though I don't fully understand all of it. Does _this in [_this,"SVAGLOBAL",_this select 0,FALSE] call BIS_fnc_MP;...mean the entire function "SVAGLOBAL"? -
How to setVehicleAmmo to remote vehicles
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
...but this is the problem. I would like the argument to be global (not local to the client) just like https://community.bistudio.com/wiki/setDamage but a for setVehicleAmmo. Does setVehicleAmmoDef have global arguments? -
How to setVehicleAmmo to remote vehicles
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Could I use https://community.bistudio.com/wiki/setOwner and switch the ownership and thus switch locality to the owner's side, then use setVehicleAmmo, and switch it back to the original owner? -
Separating Sector Modules from Bleed Ticket Modules
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ok, thanks Larrow, I realized I may have to change the way _sectorTicketBleedRatio is calculated as well as some other parameters. I have three sectors that control bleeding. Scenario 1) If only one is contolled and the other two are neutral, then bleeding should occur on the other side. Scenario 2) If 2 are controlled by one side and the third remains neutral then bleeding should double and Scenario 3) if all three are controlled the bleed rate should triple. Scenario 4) If 2 are controlled by opposite sides ( and the third is neutral) then no bleeding should occur until the third is controlled thus tipping the ballance of controlled sectors to that side. Bleeding should occur at a similar rate as then first scenario I mentioned. -
Separating Sector Modules from Bleed Ticket Modules
BEAKSBY posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
HI Folks, I have some sector modules in my mission that I do not want affected by the Bleed Tickets Module. I have unlinked them and even tried linking them to a second Bleed Tickets Module with Ticket=0 (no ticket will be bleeded). Is there any way to separate a sector module from the Bleed Tickets Module, just so I can benefit from the other features they offer? -
Separating Sector Modules from Bleed Ticket Modules
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
As Larrow mentioned, I've removed the BleedTicket module from the map and started modifying Moricky's fn_bleedTickets. I've added [[EAST,WEST],(1/6),1,1] call BEAKS_fnc_BEAKSbleedTickets; to my initSever.sqf and here's my modified bleedTickets function below. I've commented in CAPS on section I modified. fn_BEAKSbleedTickets The problem is when I test in MP the client side is not counting any sectors _sideSectorsCount they control, even the ones I don't want counted. -
Separating Sector Modules from Bleed Ticket Modules
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OK, thanks Larrow, I was affraid of that. I'll start plugging away, thanks for the head start. Shouldn't you be busy working on something for Make Arma Not War? Link to BIS_fnc_bleedTickets & BIS_fnc_respawnTickets code found here. -
How to deduct bleed tickets using BIS_fnc_bleedTickets
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
THanks Moricky, When I use [side player,-10] call BIS_fnc_respawnTickets; (or any negative value) the bleed tickets are immediately reduced from 500 (my default setting) to 0, and the game is forced to end. When I use [side player,-1, TRUE] call BIS_fnc_respawnTickets; the bleed tickets are reduced from 500 to 499, then 498, 497...etc. BIS_fnc_respawnTickets -
Separating Sector Modules from Bleed Ticket Modules
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I would like to have some sectors not affected the dominance ratio and therefor not affect the bleeding of tickets. So if for example an armory sector is controlled, I set up conditions in another script to allow the player to spawn weapons, similarly with a Motor Pool sector to spawn vehicles...etc. I want to benefit from the progress bar and notification of controlling side gui. Wondering if the above is possible? I also have strategic sectors that when controlled work with the bleed ticket module. I also set it up so a player can spawn from any sector they control. -
Searching inside BIS_fnc_bleedTickets...help finding a sub function
BEAKSBY posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
NEVERMIND...found it in the function -
Hi All, How do I pass _gun1 into the "Killed" EH? _gun1 = createVehicle [_vehType, _pos,[], 0, "CAN_COLLIDE"]; _newUnit addeventhandler ["killed",{sleep 0.2; _gun1 setVariable ["ReinforceStaticWeapon_addAction", TRUE, TRUE]; //HOW DO I PASS _gun1 into EH? _allowAddAction = _gun1 getVariable "ReinforceStaticWeapon_addAction"; hint format ["fn_StaticWeaponDrop \n _newUnit ""killed"" EH \n _allowAddAction: %1", _allowAddAction]; }]; ---------- Post added at 23:21 ---------- Previous post was at 22:51 ---------- NEVERMIND, I used vehicle (_this select 0);
-
How to pass a variable into an EH?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yup, that works. Thanks again. -
How to get addAction assigend to an object to broadcast over the network
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It is in initServer. Should i place it in initPlayerLocal.sqf this way all players will access it, along with other functions I have their (like KK's epic paradrop function). I managed to get it to work by adding [[_gun1],"BEAKS_fnc_StaticWeapon_addAction",true, true] call BIS_fnc_MP; and creating my own funcion...which I assume has the same effect compile preprocessFileLineNumbers. -
How to get addAction assigend to an object to broadcast over the network
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks again BangaBob, I thought I did send the addAction to all clients with [[_gun1],"BEAKS_addAction",true,true] call BIS_fnc_MP; Do I have to add this after the function in the initServer also? This is the part I'm still strugling with. -
Hi All, How do I pass _gun1 into the "Killed" EH? _gun1 = createVehicle [_vehType, _pos,[], 0, "CAN_COLLIDE"]; _newUnit addeventhandler ["killed",{sleep 0.2; _gun1 setVariable ["ReinforceStaticWeapon_addAction", TRUE, TRUE]; //HOW DO I PASS _gun1 into EH? _allowAddAction = _gun1 getVariable "ReinforceStaticWeapon_addAction"; hint format ["fn_StaticWeaponDrop \n _newUnit ""killed"" EH \n _allowAddAction: %1", _allowAddAction]; }];
-
removeFromRemainsCollector / addToRemainsCollector
BEAKSBY posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi All, Does anyone have an example of KK "enhanced system for automated wreck and corpse removal"? The links on the SITREP #00071 just lead to removeFromRemainsCollector / addToRemainsCollector, but I'm not sure how to use them. -
removeFromRemainsCollector / addToRemainsCollector
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Bummer, hoping it could handle allUnits, vehicles ...etc. created during the game in all MP modes. -
HI All, How do I add -noPause to the new Launcher?