-
Content Count
3059 -
Joined
-
Last visited
-
Medals
-
Medals
Everything posted by jshock
-
is isServer , isDedicated or hasInterface still revelvent
jshock replied to MarkCode82's topic in ARMA 3 - MISSION EDITING & SCRIPTING
They are if you want to make absolute sure of the locality of something, especially when debugging, but overall, with those new commands they aren't as necessary when trying to actually execute code within a specific locality scope. -
Random tasks\objectives
jshock replied to greywolf907's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hm, seems like BIS_fnc_randomPos isn't returning anything, so the central position doesn't provide any possible positions within the radius or the BIS function has changed since my use of it in that script, I've looked at the wiki and it seems the same to me. If the BIS function works for the foot patrol portion, I don't know why it won't work on the air patrol. -
Random tasks\objectives
jshock replied to greywolf907's topic in ARMA 3 - MISSION EDITING & SCRIPTING
If there aren't any errors that pop up, I'm not 100% sure what it could be, I haven't been wholefully following any of the recent game updates, nor do I script as much as I once did. Have you checked to see if they spawn, but instead of in the air flying, maybe they just crashed on spawn? Or something similar to that at least. A good debug you could try is to create a marker on the position that the air vehicle was supposed to be created at, then check that position with a character or through zeus. -
Identifying what limb takes damage
jshock replied to Jetrise's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I believe the HitPart EH can do that for you, I may be mistaken: https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HitPart -
No, I believe you'll need to make an addon.
-
Putting an "or" condition in a trigger?
jshock replied to HeroesandvillainsOS's topic in ARMA 3 - MISSION EDITING & SCRIPTING
He had some spaces between a couple of the "thisList" parts: (p1 in thislist || p2 in thislist || p3 in thislist || p4 in thislist || p5 in thislist || p6 in thislist) && h1 in thislist -
Just saw those commands :).
-
Try this: {_player = _x; {getConnectedUAV _player == _x} count [uav,uav1] > 0} count allPlayers > 0
-
Putting an "or" condition in a trigger?
jshock replied to HeroesandvillainsOS's topic in ARMA 3 - MISSION EDITING & SCRIPTING
By default I believe. -
Putting an "or" condition in a trigger?
jshock replied to HeroesandvillainsOS's topic in ARMA 3 - MISSION EDITING & SCRIPTING
{_x in thisList} count [p1...p6] > 0 && h1 in thisList EDIT: ninja'd -
Bomb scars on the ground.
jshock replied to zagor64bz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Check out all the stuff here: https://community.bistudio.com/wiki/Arma_3_CfgVehicles_EMPTY A couple that match what your're looking for are: CraterLong CraterLong_small -
This doesn't change anything, but another way of writing it as well: switch (intelPoints) do { case (60): {_INTELTYPE; cutText["...You found a piece of intel. Check your Map!","PLAIN"];}; case (100): {_INTELTYPE; cutText["...You found a piece of intel. Check your Map!","PLAIN"];}; case (150): {_INTELTYPE; cutText["...You found a piece of intel. Check your Map!","PLAIN"];}; case (200): {_INTELTYPE; cutText["...You found a piece of intel. Check your Map!","PLAIN"];}; case (300): {_INTELTYPE; cutText["...You found a piece of intel. Check your Map!","PLAIN"];}; default {}; }; When you execVM something, it returns a handle, what you need to do is: _RandomIntel = {execVM "SPAWN\IntelHint.sqf"}; _HVTIntel= {execVM "SPAWN\BOMBERHINT.sqf"}; _INTELTYPE = selectRandom [_RandomIntel,_HVTIntel]; //in your switch cases: call _INTELTYPE; Or: _intelScripts = ["SPAWN\IntelHint.sqf","SPAWN\BOMBERHINT.sqf"]; _INTELTYPE = selectRandom _intelScripts; //in your switch cases: execVM _INTELTYPE;
-
Untested, but maybe something like this: {_player = _x; {(_player == UAVControl (_x select 0)) && (_x in thisList)} count [uav,uav1] > 0} count allPlayers > 0
-
Hm, the only reason '_x' would be undefined on that particular line would be if _muzzles was empty, so the return of this line: _muzzles = getArray(configfile >> "cfgWeapons" >> (_weapon) >> "muzzles"); Is not giving a proper return (which I wouldn't think is the issue), or the weapons you have defined do not have proper configs.
-
After update getting a No Entry Bin error
jshock replied to navydoctom's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Report it on the BWMod thread. -
Dynamic interaction with an object
jshock replied to dasmaeh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Easiest work around that pops in my head is something similar to the breaching system in Ghost Recon Future Soldier. If you haven't played that, essentially, there are four playable characters, and when you came up to breach a doorway, four spots showed up, you would have to take up one of those spots and wait until all four players are in position to then breach. That can happen here, however, what I'm thinking is that you add an option to the job to say "do job with a buddy" or "do job with 'x' number of people", then you would simply execute a waitUntil loop until there are 'x' number of players trying to complete that job, then simply run the job at whatver time it would be when you have all the people there versus just one person or whatever combination. Just a concept, but hopefully it helps. -
How do I change the skill level for AI spawned with Spawn AI module??
jshock replied to owmyeye's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Where you see '#' you would put your skill level number. I used '#' as a placeholder. -
Use a respawn event handler: //in your initPlayerLocal.sqf player addEventHandler [ "Respawn", {[] execVM "yourScript.sqf";}];EDIT: Can you post the script you use for respawn?
-
[Release] JBOY FFV: Fall From Vehicles script
jshock replied to johnnyboy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yep, no problem, it's relatively simple, hardest thing to do is the reformat into the function library :p. -
[Release] JBOY FFV: Fall From Vehicles script
jshock replied to johnnyboy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Here is the addon version, I haven't gone in and tested it so let me know if there are any issues. Added a function for removing offroad doors, added respawn functionality for the standard function. Removing offroad doors: [my_offroad] call JBOY_ffv_fnc_hideOffroadDoors; Add FFV function to a unit: [my_unit] call JBOY_ffv_fnc_addFFV; Download -
Nopop functionality is global
jshock replied to shoomfie's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You would need to script/hard-code each set of targets, probably with EHs. That way some targets will stay down, while others you would "manually" have pop back up. -
[HELP NEEDED] addAction condition with an OR statement for multiple items.
jshock replied to kuplion's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Cleaner version would be: "{_x in (magazines player)} count ['classname', 'classname',...] > 0" -
Ski/Alpine Trooper Script
jshock replied to l4z0rr0b0tz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The concept is easy and the script implementation is easy enough, the hard part is the actual animation, unless there is a vanilla Arma animation that could supplement (I don't know of any off the top of my head). -
Using remoteexec to sync local script execution
jshock replied to Dzou Sisohvat's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You could use get/setVariable, setVariable on the vehicle check it in the while loop along with the "alive" check, then in lightbar off, set the variable to false. -
Scripts Vs Mods: what's better?
jshock replied to zagor64bz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yep I've been using that myself to have dual purpose scripts, vanilla or mod style. As far as mods like ACE3/CBA or similar all you need to check for is the main/common pbo class, as all other pbo's depend on those.