Jump to content

scottieb

Member
  • Content Count

    20
  • Joined

  • Last visited

  • Medals

Posts posted by scottieb


  1. sorry mate heres the rest of the code, my apologies.

    eastdead.sqs

    ;script by TaNKIST

    _unit = _this select 0

    _wscore = wscore

    _wscore = _wscore + 1

    wscore = _wscore

    publicvariable "wscore"

    showscore = true

    publicvariable "showscore"

    exit

    westdead.sqs

    ;script by TaNKIST

    _unit = _this select 0

    _escore = escore

    _escore = _escore + 1

    escore = _escore

    publicvariable "escore"

    showscore = true

    publicvariable "showscore"

    exit

    outro.sqs

    ;script by TaNKIST

    enableRadio false

    ;DisableUserInput true

    _player_vehicle = vehicle player

    ?(playerside == west): player setpos getmarkerpos "Respawn_West"

    ?(playerside == east): player setpos getmarkerpos "Respawn_East"

    removeallweapons player

    ?(_player_vehicle != player):deletevehicle _player_vehicle

    _camera = "camera" camCreate [0,0,0]

    _camera cameraEffect ["internal","back"]

    _camera camSetTarget player

    _camera camSetpos getpos camlogic1

    _camera camSetFOV 1.000

    _camera camCommit 0

    @camCommitted _camera

    TitleText [format["US: %1\n\nRF: %2", wscore, escore], "plain", 1]

    _camera camSetpos getpos camlogic2

    _camera camSetFOV 1.000

    _camera camCommit 15

    @camCommitted _camera

    EnableRadio true

    TitleText ["","Plain",0]

    player switchCamera "INTERNAL"

    player cameraEffect ["terminate","back"]

    camDestroy _camera

    ~1

    player cameraEffect ["terminate","back"]

    camDestroy _camera

    endofmission=true


  2. gday guys just a quick one need to make the blufor blue in color and the opfor red in color for this hint box on a tdm mission im working on.

    at the moment its just the standard color, brown background and white writing

    class Item2

    {

    position[]={3744.906,0.44344097,2592.4656};

    a=0;

    b=0;

    angle=-1.38056;

    repeating=1;

    age="UNKNOWN";

    expCond="showscore";

    expActiv="hint format [""BLUFOR: %1\n\nOPFOR: %2"", wscore, escore]; showscore = false";

    class Effects

    {

    };

    would also like to make the same color changes with this

    TitleText [format["BLUFOR: %1\n\nOPFOR: %2", wscore, escore], "plain", 1]

    ps, any way on changing the color of the hint box background also?

    I can normally figure stuff out myself with many hours of research but i just cant seem to make sense of all the special characters and where they start and stop.

    I very much appreciate you guys taking the time.

    thanks.


  3. Pelham,

    Your time, explanation and patience are all very much appreciated mate.

    I will test over the next couple of days and let you know how it all goes.

    Thankyou.

    ---------- Post added at 22:24 ---------- Previous post was at 20:54 ----------

    Sorry to bother you Pelham, I've changed the 0.25 to 0.90 for testing purposes and everything is where its supposed to be however its nor working.

    could this be because nul = [0.90,1] execVM "fuel.sqf"; needs to have a specific place in the init.sqf?


  4. HI guys, im trying to give the ai vehicles in Insurgency mission unlimited fuel.

    The problem is they are not placed on editor so there is no initialisation box to add this script.

    nul = this spawn { waitUntil { if !(alive _this) exitWith {}; if (fuel _this < 0.25) then { _this setFuel 1 }; false } };

    The vehicles all spawn at their locations when mission starts but after a couple of hours they run out of fuel.

    Where do i put this script so the ai vehicles always have fuel until end of mission.

    Thanks for your help.

    Scottieb.

×