-
Content Count
782 -
Joined
-
Last visited
-
Medals
Posts posted by Schatten
-
-
-
1 hour ago, avibird 1 said:I would like to add this code to the above removing the red part
If you were able to highlight the code, then you can remove it.
1 hour ago, avibird 1 said:addMissionEventHandler ["entityRespawned",{ params ["_new","_old"]; if (_new isKindOf "CAManBase") then { [_new,face _old] remoteExec ["setFace"]; [_new,speaker _old] remoteExec ["setSpeaker"]; } }];
This code should be executed once, therefore it should be placed, for instance, in initServer.sqf event script.
2 hours ago, avibird 1 said:I can't seem to get the right bracket arrangement to see if this works.
Make the code readable, don't use strings with code (since code highlighting doesn't work in strings), as I demonstrated, and use programmer's editor with code highlighting.
-
-
-
I guess that's because of quotes and apostrophes. Try to invert them.
- 1
-
31 minutes ago, Tankbuster said:but the vehicle doesn't get the camonet.
That's because BIS_fnc_initVehicle doesn't work with string.
Try this code snippet:
if (_initstring isEqualType "") then { ([_cargo] + (parseSimpleArray (format ["[%1]", _initstring]))) call BIS_fnc_initVehicle; };
- 1
- 1
-
23 minutes ago, avibird 1 said:remove the red and add the blue
You already did so in the second piece of code, just change other params.
24 minutes ago, avibird 1 said:I don't know if it is possible to have to two,"INIT=", toString in the same code
The same for me.
- 1
-
@avibird 1, just modify my code:
[ this, "DELAY=", 300, "START=", 60, "PAUSE=", 100, "EXIT=", myExitTrigger2, "INIT=", toString { { doStop _x; } forEach (units _proxyThis); } ] spawn jebus_fnc_main;
-
https://community.bistudio.com/wiki/Arma_3:_Server_Config_File#Server_Options -- forceRotorLibSimulation parameter.
-
[ this, "DELAY=", 300, "START=", 60, "PAUSE=", 100, "EXIT=", myExitTrigger2, "INIT=", toString { _actionParameters = [ "On Knees", { (_this select 0) playMove "Acts_ExecutionVictim_Loop"; }, nil, 1.5, true, true, "", "true", 1.5 ]; { _x disableAI "PATH"; _x addAction _actionParameters; } forEach (units _proxyThis); } ] spawn jebus_fnc_main;
- 1
-
Don't know for sure -- I just write scripts in accordance to the BIKI, and it says that if radius is zero or positive, then you should use PositionAGL, otherwise you should use PositionASL.
-
2 minutes ago, redarmy said:Can i ask.. "-1" is signaling a random distance in the area from centre point?
No, according to the BIKI:
Quote-1 can be used for exact waypoint placement
Just noticed, that PositionASL should be used if radius is negative, so this is fixed version:
_wp = BB addWaypoint [AGLToASL (randomPoint call BIS_fnc_randomPosTrigger), -1];
-
_wp = BB addWaypoint [randomPoint call BIS_fnc_randomPosTrigger, -1];
- 1
-
According to the function syntax and example, it also accepts markers.
-
-
5 minutes ago, Vadym Mazur said:"script.sqf" remoteExec ["execVM",2];
?
No.
If script.sqf is available for players, then
"script.sqf" remoteExec ["execVM", allUnits select { isPlayer _x }];
- 1
-
3 hours ago, Vadym Mazur said:Where is the mistake?
The mistake is that createDiarySubject requires local argument, therefore you need to execute this command using remoteExec.
- 1
-
No, I haven't. Why? I need to get correct scroll bar values (or understand what they mean) of items list of vest, this listbox doesn't have any slider.
-
Hello everyone!
According to the BIKI, ctrlScrollValues returns values in range 0..1. However, if I scroll down a list, the Y value is greater than 1 -- 11.5715: https://imgbox.com/yqtZo8sv
Is this a bug? If not, what does this number mean?
-
description.ext:
onPauseScript = "onPause.sqf";
onPause.sqf:
params ["_display"]; (_display displayCtrl 1010) ctrlEnable false;
-
2 minutes ago, janchezs said:So I just use this code as trigger condition and set trigger to END1?
Correct.
3 minutes ago, janchezs said:I also think that the code is counting all the units, but I actually need to only count blufor
Set that the trigger is activated by BLUFOR.
-
@janchezs, try this condition (assuming the units are already inside the trigger):
_unitsCount = count thisList; _unitsCountMin = thisTrigger getVariable ["unitsCountMin", -1]; if (_unitsCountMin < 0) then { _unitsCountMin = ceil (0.3 * _unitsCount); thisTrigger setVariable ["unitsCountMin", _unitsCountMin]; }; _unitsCount <= _unitsCountMin
-
By the way, find is case-sensitive, so if you need case-insensitive, you can use, for example, toLowerANSI:
((toLowerANSI _x) find "mark_") == 0
- 1
- 1
-
7 minutes ago, Harzach said:"isEqualTo" is case-sensitive while "==" is not
Aware of this, but in our cases isEqualTo is used to compare numbers, and in this context I prefer to use == because it's shorter.
- 2
[SOLVED] Spawn civilian hostage with init, and problem with addAction
in ARMA 3 - MISSION EDITING & SCRIPTING
Posted
That's because your code is wrong. I guess it should be like this (pay attention to the formatting and readability):