Jump to content
  • *Premium Block

    Want to see your ad here? Ask an admin for pricing.

  1. Altis Life RPG

    1. 12
      posts
    2. 1
      post
  2. Altis Life RPG Community

    1. 1.6k
      posts
    2. 35
      posts
    3. 2.5k
      posts
    4. Discord (join us for discuss)   (9,372 visits to this link)

  3. Tools and Administration

    1. Altis Life RPG (official Framework)   (50,474 visits to this link)

    2. Altis Life Wiki   (20,100 visits to this link)

    3. 591
      posts
    4. 903
      posts
    5. 220
      posts
    6. 140
      posts
  4. Altis Life Customization

    1. 508
      posts
    2. 9.6k
      posts
    3. 150
      posts
  • *Standard Block

    Want to see your ad here ? Ask an admin for pricing.

  • Posts

    • Just a little updated version if (vehicle _source != _source) then { _damage = damage _damagedUnit; private _driver = driver vehicle _source; if (!isNull _driver) then { [0,format["%1 just ran over %2!", name _driver, name _damagedUnit]] remoteExec ["life_fnc_broadcast",0]; }; };  
    • Nevermind, I found the syntax error. Forgot to add a colane to the end of the variable name line. private _vicToUnFlip = cursorTarget; sleep 3; _vicToUnFlip setPos [getPos _vicToUnFlip select 0, getPos _vicToUnFlip select 1, (getPos _vicToUnFlip select 2)+5];   I will also be adding a message on-screen to let the player know its unflipping in X seconds.
    • Thank you gustavseitztestarma3 for the quick response, and takes me a while to test my changes as I go. I swapped the "C:\arma3\mpmissions\Altis_Life.Altis\core\vehicle\fn_vInteractionMenu.sqf" code with what you suggested. _Btn6 buttonSetAction "closeDialog 0;[] spawn life_fnc_unFlip"; This is my un-flip script: "C:\arma3\mpmissions\Altis_Life.Altis\core\functions\fn_unFlip.sqf" _vicToUnFlip = cursorTarget sleep 3; _vicToUnFlip setPos [getPos _vicToUnFlip select 0, getPos _vicToUnFlip select 1, (getPos _vicToUnFlip select 2)+5]; I added "class unFlip {};" to the "C:\arma3\mpmissions\Altis_Life.Altis\Functions.hpp" file under "class Functions" class Functions { file = "core\functions"; class index {}; class inputMenu {}; class AAN {}; class accType {}; class actionKeyHandler {}; class animSync {}; class calWeightDiff {}; class checkMap {}; class clearVehicleAmmo {}; class dropItems {}; class escInterupt {}; class fetchCfgDetails {}; class fetchDeadGear {}; class fetchVehInfo {}; class isDamaged {}; class giveDiff {}; class handleDamage {}; class handleInv {}; class handleItem {}; class hideObj {}; class hudSetup {}; class hudUpdate {}; class inventoryClosed {}; class inventoryOpened {}; class isUIDActive {}; class keyHandler {}; class loadDeadGear {}; class loadGear {}; class nearATM {}; class nearestDoor {}; class nearUnits {}; class numberText {}; class onFired {}; class onTakeItem {}; class playerSkins {}; class playerTags {}; class postNewsBroadcast {}; class pullOutVeh {}; class pushObject {}; class receiveItem {}; class receiveMoney {}; class revealObjects {}; class saveGear {}; class simDisable {}; class startLoadout {}; class stripDownPlayer {}; class teleport {}; class whereAmI {}; class moveIn {}; class unFlip {}; }; The ui still comes up with the un-flip option but when I click on the button the ui just disappears and nothing happens.
    • You can't suspend buttonAction, the code that follows will be executed immediately. So you have create a new file, input the sleep/flip code there and refer to it such as: _Btn6 buttonSetAction "closeDialog 0;[] spawn life_fnc_flipthisshit";  
    • Yes please I also tried waitUntil using time and serverTime
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.