Search the Community
Showing results for tags 'mod making'.
Found 2 results
-
I'm making a tank and I have a problem, I have an animation of hiding an armor element when a hitpoint is destroyed (like ERA), it hides and works correctly, but I want to make an unhide animation after the first animation of hiding after receiving damage is triggered, so that the "visually burnt" version of the top is revealed, I made a model of "burnt armor" but I can't get it to reveal after the 1st animation is triggered, how can I do this? My model.cfg part of animation: class BKL1 { type="hide"; hideValue=0.99999; minValue=0; maxValue=1; minPhase=0; maxPhase=1; source="BKL1"; sourceAddress=0; selection="BKL1"; }; class BKL1_Broken { type="hide"; hideValue=0; minValue=0; maxValue=1; minPhase=0; maxPhase=1; source="BKL1_Broken"; sourceAddress=0; selection="BKL1_Broken"; }; class BKR1 { type="hide"; hideValue=0.99999; minValue=0; maxValue=1; minPhase=0; maxPhase=1; source="BKR1"; sourceAddress=0; selection="BKR1"; }; class BKR1_Broken { type="hide"; hideValue=0; minValue=0; maxValue=1; minPhase=0; maxPhase=1; source="BKR1_Broken"; sourceAddress=0; selection="BKR1_Broken"; }; My animationsources part in config.cpp: class BKL1 { source = "Hit"; hitpoint = "BKL1"; raw = 1;}; class BKR1 { source = "Hit"; hitpoint = "BKR1"; raw = 1;}; class BKR1_Broken { source = "Hit"; hitpoint = "BKR1"; raw = 1;}; class BKL1_Broken { source = "Hit"; hitpoint = "BKL1"; raw = 1;}; So how i can make "Unhide", animation correcly, to make it work?
-
Newbie question - folder structure of my addon
jaynic posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hi all, I am tring to create a basic addon that decreases the amount of fatigue by a variable. I have made it in individual missions, but I'd like to make it an addon so I can have it accessible all the time with my group... I have looked for a guide on how to get this started, but haven't come up with anything. Everything I see is about creating some magical 'p' drive and all this... It seems like it's overly complex for what I'm attempting - I should just be able to script this, correct? Anyways, I have the following script: if !(hasInterface) exitWith{}; waitUntil {!isNull(findDisplay 46)}; waitUntil {!isNull player}; //set global variables missionNamespace setVariable ["OHTC_FatigueMultiplier", 0.3]; _l = 0; //The last fatigue we had while {true} do { if(!(isNil "OHTC_FatigueMultiplier") && typeName OHTC_FatigueMultiplier == "SCALAR" && OHTC_FatigueMultiplier >0 0 OHTC_FatigueMultiplier <= 1) then { //The current fatigue of the player _c = getfatigue player; //The default increase: ie: difference between what we have now, and what we had last time we ran _di = _c - _l; //The NEW increase in fatigue would be the percentage we request of the default increase _ni = _di - (_di * OHTC_FatigueMultiplier); //Assuming we've gone up: let's set the fatigue to the new value; if(_ni > 0) then { player setFatigue _c - _ni; }; systemChat format ["Last: %1, Current: %2, Default Inc: %3, Multiplier: %4, New Inc: %5, Final Fatigue: %6", _l, _c, _di, OHTC_FatigueMultiplier, _ni, getfatigue player]; //Now we set our last historical value to our modified value _l = getfatigue player; }; sleep 1; } And I want it as a mod. I've taken apart a couple mods with Elitness, but I'm not understanding how to piece one together myself. I have folder in my arma directory called "@OHTCfatigueMultiplier". Inside this folder I have another folder called "addons" Inside the addons folder I have a script - init.sqf - that contains the above script. What else am I missing, please? Thank you- 2 replies
-
- how to
- mod making
-
(and 3 more)
Tagged with: