-
Content Count
134 -
Joined
-
Last visited
-
Medals
Everything posted by Lucullus
-
Maybe you mean triggerArea or boundingBoxReal?
-
Delete value from array after selectRandom
Lucullus replied to iV - Ghost's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Why not test yourself? _task1 = {execVM "scripts\taskmanager\tasks\Girna.sqf";}; _task2 = {execVM "scripts\taskmanager\tasks\Mike-26.sqf";}; _task3 = {execVM "scripts\taskmanager\tasks\Airbase.sqf";}; _task4 = {execVM "scripts\taskmanager\tasks\Kamino.sqf";}; _task5 = {execVM "scripts\taskmanager\tasks\CampRogain.sqf";}; _task6 = {execVM "scripts\taskmanager\tasks\AgiaMarina.sqf";}; _tasks = [_task1,_task2,_task3,_task4,_task5,_task6]; // select random task and remove it from array _selectedTask = _tasks deleteAt floor random (count _tasks); hintC format ["_selectedTask:\n %1\n\n_tasks:\n %2",_selectedTask,_tasks]; -
"Error Missing ;" (I don't get it)
Lucullus replied to stlassen's topic in ARMA 3 - MISSION EDITING & SCRIPTING
19:19:25 Error position: < ^^^ this marks the error "then" is missing. The missing semicolon is not significant. -
Delete value from array after selectRandom
Lucullus replied to iV - Ghost's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I thought so. When select the task, remove it from array. -
Delete value from array after selectRandom
Lucullus replied to iV - Ghost's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ah, misunderstood, I thought he wanted to erase it from the array. -
Delete value from array after selectRandom
Lucullus replied to iV - Ghost's topic in ARMA 3 - MISSION EDITING & SCRIPTING
// SELECT RANDOM TASK _tasks = [_task1,_task2,_task3,_task4,_task5,_task6]; _randomTask = _tasks deleteAt floor random (count _tasks); -
I know butts that are so big and that's why they are virgin... btt: Don't know about problems with relative paths, but we put the mission on Dedi always in Arma 3\MPMissions\whatever.pbo. I know different paths on clientside, but still had no problems with it. I again test the respawn fitness, but we have not noticed anything yet. We use the insignias for a ranking system, and the script runs on respawn.
-
Dedicated-tested (Co08)Insignia_Test.VR.pbo
-
Disable AI as waypoint statement
Lucullus replied to lawman_actual's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You missed an "L" at disableAI. If you have code in quotation marks that needs strings, then you have to mark the strings with double quotation marks (""FSM"") or this one ('FSM'). That marks string in a string. -
Place the insignia in missionfolder, for example "missionroot\insignias\my_insignia.jpg" description.ext: class CfgUnitInsignia { class InsigniaClassName { // Name displayed in Arsenal displayName = "InsigniaDisplayName"; // Author displayed in Arsenal author = "name of author"; // Image path texture = "insignias\my_insignia.jpg"; // Does nothing currently, reserved for future use textureVehicle = ""; }; }; initPlayerLocal.sqf: _playerUIDs = ["1234567","2345678"]; if ((getPlayerUID player) in _playerUIDs) then { [player,"InsigniaClassName"] call bis_fnc_setUnitInsignia; };
-
Maybe this helps: getResolution
-
how do i add + 30 to createVehicle
Lucullus replied to barbara_jhonson's topic in ARMA 3 - MISSION EDITING & SCRIPTING
try: _dog = createAgent ["Fin_random_F", player getPos [30,random (360)], [], 5, "NONE"]; getPos Example 4- 1 reply
-
- 1
-
_count doesn't update in the loop. edit: Pierre was faster...
-
execute code server side
Lucullus replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
use wiki: Script_Path -
Delete weapons from faction member after killing
Lucullus replied to iV - Ghost's topic in ARMA 3 - MISSION EDITING & SCRIPTING
change to if !(_killed isKindOf "Man") exitWith {}; -
Hm, i think @pierremgi is right. When serverclient leaves the mission, it's too late.
-
What about to always save when a client disconnected?
-
There is a "HandleDisconnect" EH for server. Not sure what you want, clientside or serverside.
-
Another way: _str = "My first line<br/>My second line<br/>Third line<br/>you guessed it, fifth line<br/>I lied that was the fourth."; _lines = count (_str splitString "/"); hint str (_lines); // 5
-
How to get a Strider in Blueforce colours?
Lucullus replied to Joe98's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Another one: [this,["Blufor",1],true] call BIS_fnc_initVehicle; -
Simple test to see if asset exists ?
Lucullus replied to scottb613's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hm, test with 1.74 in MP. slick3 and slick4 defined as objects on map. _slicks = [slick1,slick2,slick3,slick4,slick5] select {not isNil "_x"}; // [slick3,slick4] -> works, but throw an error _slicks = [slick1,slick2,slick3,slick4,slick5] select {not isNil {_x}}; // [slick3,slick4] -> works, but throw an error _slicks = ["slick1","slick2","slick3","slick4","slick5"] select {not isNil _x and {not isNull _x}}; // -> doesn't work, because isNull wants an object _slicks = ["slick1","slick2","slick3","slick4","slick5"] select {not isNil _x}; // ["slick3","slick4"] -> ok -
Simple test to see if asset exists ?
Lucullus replied to scottb613's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You can only work with undefined variables if you put them in quotation marks. _slicks = [slick1,slick2,slick3,slick4,slick5] select {not isNil "_x"}; // doesn't work _slicks = ["slick1","slick2","slick3","slick4","slick5"] select {not isNil _x and {not isNull _x}}; // doesn't work, because isNull wants an object _slicks = ["slick1","slick2","slick3","slick4","slick5"] select {not isNil _x}; // ok -
Using a variable from another script
Lucullus replied to fubister's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Variables look for local and global -
Execute scripts when map is open
Lucullus replied to ColonelKernel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Do you know how an EH works? While {true} do { ^^ this is bad practice for an EH... -
Execute scripts when map is open
Lucullus replied to ColonelKernel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
addMissionEventHandler [ "Map", { params ["_isOpened","_isForced"]; // do what you want } ];