Jump to content

Lucullus

Member
  • Content Count

    134
  • Joined

  • Last visited

  • Medals

Everything posted by Lucullus

  1. Lucullus

    Get scale object

    Maybe you mean triggerArea or boundingBoxReal?
  2. 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];
  3. 19:19:25 Error position: < ^^^ this marks the error "then" is missing. The missing semicolon is not significant.
  4. I thought so. When select the task, remove it from array.
  5. Ah, misunderstood, I thought he wanted to erase it from the array.
  6. // SELECT RANDOM TASK _tasks = [_task1,_task2,_task3,_task4,_task5,_task6]; _randomTask = _tasks deleteAt floor random (count _tasks);
  7. Lucullus

    Insignia with Steam uid

    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.
  8. Lucullus

    Insignia with Steam uid

    Dedicated-tested (Co08)Insignia_Test.VR.pbo
  9. Lucullus

    Disable AI as waypoint statement

    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.
  10. Lucullus

    Insignia with Steam uid

    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; };
  11. Lucullus

    Detecting UI size

    Maybe this helps: getResolution
  12. Lucullus

    how do i add + 30 to createVehicle

    try: _dog = createAgent ["Fin_random_F", player getPos [30,random (360)], [], 5, "NONE"]; getPos Example 4
  13. Lucullus

    Count Issue

    _count doesn't update in the loop. edit: Pierre was faster...
  14. Lucullus

    execute code server side

    use wiki: Script_Path
  15. change to if !(_killed isKindOf "Man") exitWith {};
  16. Lucullus

    Event on save || exit

    Hm, i think @pierremgi is right. When serverclient leaves the mission, it's too late.
  17. Lucullus

    Event on save || exit

    What about to always save when a client disconnected?
  18. Lucullus

    Event on save || exit

    There is a "HandleDisconnect" EH for server. Not sure what you want, clientside or serverside.
  19. 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
  20. Another one: [this,["Blufor",1],true] call BIS_fnc_initVehicle;
  21. 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
  22. 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
  23. Variables look for local and global
  24. Lucullus

    Execute scripts when map is open

    Do you know how an EH works? While {true} do { ^^ this is bad practice for an EH...
  25. Lucullus

    Execute scripts when map is open

    addMissionEventHandler [ "Map", { params ["_isOpened","_isForced"]; // do what you want } ];
×