-
Content Count
431 -
Joined
-
Last visited
-
Medals
Everything posted by BEAKSBY
-
How di I get my player's health?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I just tried the following and when my player is shot (in the leg) his health still reads 100! This is not what I was expecting? _playerHealth = (1 - (damage player))*100; player addAction ["Player's health", { hint format ["Player's health is %1", _this select 3] }, _playerHealth ]; ...and I don't see the difference between damage and getDammage? -
I've tried player addAction ["Player's health", { hint format ["Player's health is %1", _this select 3] }, getDammage player ]; but this only seems to return "0" when I thought it would range from 0 to 1?
-
How do you update custom menu
BEAKSBY replied to f2k sel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'll send it to you tonight 10PMish EST with more details...currently I'm at work and don't have acccess to my ARMA files...sigh. -
How di I get my player's health?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks for the quick tutorial, much appreciated! -
loadScreen paa image is has blue filter
BEAKSBY posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Not sure if this belongs in the scripting forum but... Why does my paa image look like it has a blue filter over it on the load up screen? Thanks -
loadScreen paa image is has blue filter
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
So the size will cause it to shift in colour? Hmm? -
How di I get my player's health?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks! Also, can you please explain to me what the %1 does and _this select 3 does? in: player addAction ["Player's health", { hint format ["Player's health is %1", _this select 3] }, _playerHealth ]; -
How do you update custom menu
BEAKSBY replied to f2k sel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I did a bit more work last night and created the entire MOTOR POOL sub-menu with conditions based on each item's varying price, so a certain vehicle will be active only if you have enough money. I have about 7 or 8 different vehicles listed with different prices each. They all work fine with the MP money script I'm using. I will continue with the remaining sub-menus like the ARMORY for static weapon emplacements, RADIO TOWER to call in supports and REINFORCEMENTS to call in paratroopers, all based on money criteria. The other criteria I have to now add is: If you have captured the MOTOR POOL sector (from the sectors module) and have enough money then the vehicle will be active in the menu list. This does not seem too hard to do. Finally, I will have to create a separate CUSTOM MENU for OPPFOR side as they will have different vehicles, emplacements ...etc. I'll post my progress here. -
How di I get my player's health?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
If I multiply by 100, will that give me the percentage of player's health? Does this script have the correct format to display the health from 0 to 100, I'm never sure with brackets and quotes? _playerHealth = (1 - (damage player)*100); player addAction ["Player's health", { hint format ["Player's health is %1", _this select 3] }, _playerHealth ]; -
loadScreen paa image is has blue filter
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The Text2 program to save from targa file to paa. -
How do you update custom menu
BEAKSBY replied to f2k sel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks F2k Sel & albertfish, it works great! I posted my script below that employs this active or greyed out option depending on whether the player has enough money (DNA_money) to puchase the vehicle. I was using a MP money script provided by DNA_UK. The next step is to find a algorithmic solution to repeating this for all ivehicles listed in the menus. (I.e. There will be about 15 items to purchase). -
how do I run addEventHandler effects on a specific machine, server or client?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks and much appreciated! -
ONLY the WEST side is working for the BLUaddmoney.sqf / OPPaddmoney.sqf when I test on LAN init.sqf BLUaddmoney.sqf _BLUsum = _this select 0; BLUmoney = BLUmoney + _BLUsum; hint format ["You have %1$", BLUmoney]; OPPaddmoney.sqf _OPPsum = _this select 0; OPPmoney = OPPmoney + _OPPsum; hint format ["You have %1$", OPPmoney]; I think this all has to do with addEventHandler --> effects of the given scripting command are not broadcasted over the network and remain local to the client the command is executed on. Check Locality in Multiplayer for more information about locality of objects. I'm not sure how to check which machine it is run on server or client then run the addEventHandler on the appropriate machine. SO how do I run addEventHandler effects on a specific machine, server or client?
-
Support showcase, how to add custom support requests?
BEAKSBY replied to redpiano's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi All, I just want to call in CAS from a uav then make it available every 5 minutes once it is used. When it is "recharging" how can I make it greyed out? Then use the BIS_fnc_addCommMenuItem function to add the support to the player: [player, "Bravo"] call BIS_fnc_addCommMenuItem; QUOTE=kylania;2434178]It's a two piece solution. First you need to declare your "support" in description.ext: class CfgCommunicationMenu { class Attack; class Bravo: Attack { text = "Send in Bravo Team"; expression = "BIS_bravoGo = TRUE;"; icon = "\a3\ui_f\data\map\markers\nato\b_inf.paa"; removeAfterExpressionCall = 1; }; }; Then just have a trigger checking for BIS_bravoGo to be true. -
Virtual Ammobox System (VAS)
BEAKSBY replied to tonic-_-'s topic in ARMA 3 - MISSION EDITING & SCRIPTING
I saw the saved files from http://forums.bistudio.com/showthread.php?174953-Character-Loadout-Customizer-(Paper-Doll-Gear-menu-amp-VAS-Virtual-Ammobox-Combined)/page4 and they are huge...5mb, and too much script to filter the equipment used in the VAS. I would like to use the equipment listed in text format for another file, like description.ext using respawn loadouts without a VAS. I wonder if these files can be depbo like a pbo file for easier editing or something similar? does anyone know how I can extract the equipment only text neatly from the VAS saved file? -
how do I run addEventHandler effects on a specific machine, server or client?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks, works great! I'm still having troubles getting the hint to display the current account after a unit (or player) from the side of the player makes a kill. Both players should see a hint displaying their current account after one of their own units make a kill. -
Character Loadout Customizer - (Paper Doll Gear menu & VAS-Virtual Ammobox Combined)
BEAKSBY replied to Gunter Severloh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I saw the saved files and they are huge...5mb, and too much script to filter the equipment used in the VAS. I just was hoping I could copy paste the script for the loadout to another file, like description.ext using respawn loadouts without a VAS. I wonder if these files can be depbo like a pbo file for easier editing or something similar? -
how do I run addEventHandler effects on a specific machine, server or client?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks DnA_UK Question: I replaced with Do you think this will affect MP gameplay as any unit from one side will generate money for their side and vice-versa? This was my original intent. My game will be designed for 4 Vs 4 for the maximum amount of players, yet each player can spawn dozens of units each. New initServer.sqf -
How do I get the Class of a vehicle?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
why is this forum so f'in helpful? ...there is good in this world, and for free! thanks! -
I would like to know the command to obtain the class of a vehicle. So, suppose I destroy a "B_APC_Tracked_01_AA_F" and want to award a player a specific amount of money, how would identify the vehicle then? I would like to do this for different types of vehicles, soldiers, Air CAS and static emplacements destroyed by the player or units on his side. Thanks
-
Character Loadout Customizer - (Paper Doll Gear menu & VAS-Virtual Ammobox Combined)
BEAKSBY replied to Gunter Severloh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks Gunter, I understand how time consuming and addictive this is! We all have families and work...etc. I stay up late and drink lot's of coffee! I will follow-up with "VAS has a system built in where when you save your loadout, theres is something copied and I forget where in your computer for your game, like a profile of sort, so basically you can go to another mission be it your own or someone elses and if it has Vas just choose the title in the VAS list and it should load." ..and post the results here to carry-on your legacy. Thanks again and great work! -
Character Loadout Customizer - (Paper Doll Gear menu & VAS-Virtual Ammobox Combined)
BEAKSBY replied to Gunter Severloh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
AMAZING. How do we save the character's loadout to a mission file to access the loadout script files? In otherwords how can I export my character to another mission file with his load I created? -
how do I run addEventHandler effects on a specific machine, server or client?
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OK, Thanks! I will need some time to digunderstand it and add it to the OPPFOR side too. Thanks again -
Health, Food, Water & Money - script and gui icons
BEAKSBY replied to BEAKSBY's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Would you know how I could get the scripts or pbo? -
Custom Menu <optional icon path> issue
BEAKSBY posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
HI Folkes, If anyone is familiar with https://community.bistudio.com/wiki/showCommandingMenu I need help with creating a // optional icon path: The path to the texture of the cursor, that should be used on this menuitem. I placed my "\SlammerUp2_ca.paa" in my mission folder and when I run the mission I get a message "Cannot load texture slammersp2_ca.paa." What are the maximum file size or other relevant parameters I need to obey? //This script will create a custom menu, and display it once.