-
Content Count
662 -
Joined
-
Last visited
-
Medals
Community Reputation
183 ExcellentAbout Schatten
-
Rank
Master Sergeant
Profile Information
-
Gender
Male
-
Location
Minsk, Belarus
Recent Profile Visitors
-
BIS_fnc_holdActionAdd dynamic title
Schatten replied to gc8's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@gc8, BIS_fnc_holdActionAdd returns action ID. I'm sure you can use it to change the title using setUserActionText command. -
1 person view in town
Schatten replied to Casio91Fin's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Casio91Fin, condition: this && { (vehicle player) in thisList } && { cameraView == "EXTERNAL" } On activation: (vehicle player) switchCamera "INTERNAL"; titleText ["You are\nIN\n1stPV Area!", "PLAIN DOWN", 3];- 1 reply
-
- 2
-
-
Access variable from MPeventhandler "MPKilled" - Help Needed
Schatten replied to pSiKO's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@pSiKO, if you kill someone from a vehicle, _killer will be the vehicle. You can use this workaround: params ["_unit", "_killer", "_instigator"]; if (!(isNull _instigator)) then { _killer = _instigator; } else { if (!(_killer isKindOf "CAManBase")) then { _killer = effectiveCommander _killer; }; }; -
Force eject all non-crew from vehicle
Schatten replied to Aurora152's topic in ARMA 3 - MISSION EDITING & SCRIPTING
_spawn isn't available inside "On deact." field, but you can save action ID in the trigger object: - On act.: thisTrigger setVariable ["actionId", player addAction ["Spawn Units", "spawn.sqf"]]; - On deact.: _actionId = thisTrigger getVariable ["actionId", -1]; if (_actionId >= 0) then { player removeAction _actionId; }; -
Issues with fleeing squads
Schatten replied to redarmy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@redarmy, unfortunately, you need to write a script that will monitor each unit in a group and order those of them to return to initial position. Here is example: https://github.com/A3Wasteland/ArmA3_Wasteland.Altis/blob/0554cc7aabc300d2a92a85df361ad5e1dba140db/server/functions/defendArea.sqf#L78 -
"or" in trigger condition
Schatten replied to Alert23's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Alert23, OR has lower priority than AND, so you should use brackets to increase priority: this && vehicle player in thislist && ((a1 inArea trg1) or (b1 inArea trg1)) I recommend to use curly brackets for lazy evaluation: this && { (vehicle player) in thislist } && { (a1 inArea trg1) or { b1 inArea trg1 } } -
How to make specific corpses not despawn or get cleaned up?
Schatten replied to SOVIET_IDIOT's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@SOVIET_IDIOT, strange -- I've just checked it in simple SP mission and it works fine. In the mission I enabled GC, place 2 enemy units, removed the one from GC and kill them -- the one disappeared, but the second didn't. Seems you made mistake somewhere. Try to use isInRemainsCollector command to check. -
Proper way to select a random position in marker
Schatten replied to redarmy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@redarmy, try this: for "_i" from 1 to 6 do { art1 doArtilleryFire [[["hj"], []] call BIS_fnc_randomPos, "32Rnd_155mm_Mo_shells", 1]; sleep 5; }; -
How to make specific corpses not despawn or get cleaned up?
Schatten replied to SOVIET_IDIOT's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@SOVIET_IDIOT, use removeFromRemainsCollector command. -
If Unit Not alive End Mission (trigger) [SOLVED]
Schatten replied to ziptlytical's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@ziptlytical, try this condition: this and { !(alive officer1) } -
Which Condition, recognizes the item within the vehicle inventory?
Schatten replied to snakeplissken's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@snakeplissken, try this: "Flashdrive" in (magazineCargo SUV) -
Adding image to background control in dialog
Schatten replied to sagent54's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It's difficult to explain short. I recommend you read about dialogs here. Also there are nice tutorials written by @killzone_kid, first part here. -
Kill units inside a trigger
Schatten replied to Dj Rolnik's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Dj Rolnik, if you set that trigger can be activated by any, thisList array will contain entities that are inside trigger area. Then you can write in "On act." field something like this: { if ((_x isKindOf "CAManBase") and { alive _x } and { (side (group _x)) == blufor }) then { _x setDamage 1; }; } forEach thisList; -
Adding image to background control in dialog
Schatten replied to sagent54's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@sagent54, to add a picture to a control, use 0 as it's type, 48 as it's style and set path to picture to text property, e.g.: class ctrlPicture { style = 48; text = "path/to/picture.hpp"; type = 0; }; -
How to create a hint with picture and text?
Schatten replied to SlovakianLynx's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@SlovakianLynx, also it's not allowed to use quotes inside quotes and apostrophes inside apostrophes. This code should work: hint parseText "<img image='pics\slynx_WW2_SAS_Objfail.paa'/><br/><br/><t size='1.2'>You failed to find Schumman</t>";