Jump to content

Sloppy on pc

Member
  • Content Count

    14
  • Joined

  • Last visited

  • Medals

Posts posted by Sloppy on pc


  1. how would one set a condition to tell a player in a vehicle to speed up or slow down? i want to put this into an air rearm script so that jets can rearm in the air in my mission

     

     

    On 1/27/2014 at 7:30 AM, KC Grimes said:

    Like any condition, really.

    Use the above code I gave you to figure out how fast sprinting is and how fast walking is, and decide your "max speed". For giggles, lets say it is 5. So, here's an application:

    script.sqf

     

    
    speedtest = 0;
    while {speedtest < 5} do {
       speedtest = speed unit;
    };
    player sideChat "Unit is moving faster than 5 kph!";
    
     

     


  2. howToPlay = parseText "
    <t align='center'>How To Play!</t>
    <br />
    <br />
    <t size= '0.8'>
     <t align='center'>Server rules:</t>
    <br />
    <br />
    1: Respect everyone on the server.
    <br />
    2: Bullying and or abusing other players will get you banned, if you have a problem with someone sort it out in the air, NOT IN CHAT!
    <br />
    3: Spawn camping will not be tolerated. Anyone found to be camping bases will be hit with a 24hr ban.
    <br />
    4: Cheating or hacking will not be tolerated.
    <br />
    5: No racial-slurs or extremely vulgar words used in a derogatory manner over global or side chat.
    <br />
    6: Admins have last say.
    <br />
    <br />
    Ban Policy: We have a strict 4 strike policy, on you fourth strike you WILL be perma banned.
    <br />
    1ST Offence: 24hr Ban.
    <br />
    2ND Offence: 72hr Ban.
    <br />
    3RD Offence: 7 day Ban.
    <br />
    4TH Offence: Perma Ban.
    <br />
    <br />
    Bans have 6 month clean slate period where each players bans will be wiped clean when 6 months has passed since the last ban.
    <br />
    <br />
    Please note: you may appeal any of the above bans, but you must provide video evidence to prove that you did not break any of the above rules.
    Said video MUST be atleast 3 minutes long and contain ingame and voice audio. You may also be required to produce a longer video if an admin deems it necessary.
    <br />
    <a href="http://discord.me/ausairsupremacy">Join our Discord</a>
    ";

    createDialog "howTo";
    _ctrl = (findDisplay 15000) displayCtrl 1100;
    _ctrl ctrlSetStructuredText howToPlay;
     


  3. hi guys, i'm trying to add a hyper link into my gui so players can join my discord just by clicking a link on the gui only problem is that when ever i go to test it, i get an error saying that i'm missing a ; on the line that my hyper link is on, has anyone else came across this problem before?

    this is a copy of the end part of my script:

    <br />
    <br />

    Please note: you may appeal any of the above bans, but you must provide video evidence to prove that you did not break any of the above rules.
    Said video MUST be atleast 3 minutes long and contain ingame and voice audio. You may also be required to produce a longer video if an admin deems it necessary.
    <br />
    <a href="http://discord.me/ausairsupremacy">Join our Discord</a>
    ";
     


  4.  so i'm trying to make a caesar that i've modded up with a wipeout cannon, 35mm aa tank cannon and just about every other conceivable vehicle weapon in the game respawn, only problem is that every time it respawns, it does so with out any of the fun stuff. could someone please help with my problem?

     

    this is some of the script that i put into the init field : 

    removeAllWeapons this;
    [this,"Gatling_30mm_Plane_CAS_01_F",2] call BIS_fnc_addWeapon;

    this addEventHandler ["Respawn",{removeAllWeapons this;
    [this,"Gatling_30mm_Plane_CAS_01_F",2] call BIS_fnc_addWeapon;}];


  5. 2 minutes ago, cookies2432 said:

    Well, I was looking at a far more complex solution than was needed. All you need to do is to repeat your code to remove the weapons from the jet after you have rearmed it. It would look something like this:

     

    
    veh = vehicle player;
    _spd = speed veh;
    engOn = false;
     veh engineOn false;
     waitUntil {!isEngineOn veh};
     _i = 20;
     while {_i > 0} do {
         _i = _i -1;
         sleep (1);
         if (engOn) exitWith {};
         hintSilent format [   "%1 Seconds Left"  ,   _i   ];
     };
     hint "GO GO GO!!";
    veh setFuel 1;
    veh setDamage 0;
    veh setVehicleAmmo 1;
    
    if (_checkClassName == "I_Plane_Fighter") then {
    _wep = (getArray (configfile >> "CfgVehicles" >> _vehClassName >> "weapons")) select 0;
    _jet removeWeapon _wep;
    _jet removeWeapon "weapon_AMRAAMLauncher";
    _jet removeWeapon "weapon_AGM_65Launcher";
    _jet removeWeapon "Laserdesignator_pilotCamera";
    _jet removeWeapon "weapon_GBU12Launcher";
    [_jet,"weapon_Fighter_Gun20mm_AA",1] call BIS_fnc_addWeapon;
    };

    All you need to do is basicly have the weapons' removal code after you rearm it (and modify it so it has more ammo, did not include that here.) so it rearms every gun and then removes the ones you don't want.

    that worked!! thank you for your help with this, i really appreciate it. :)


  6. Just now, cookies2432 said:

    And your script for the customization of the cannons (gryphon for example).

     

    if (_checkClassName == "I_Plane_Fighter") then {
    _wep = (getArray (configfile >> "CfgVehicles" >> _vehClassName >> "weapons")) select 0;
    _jet removeWeapon _wep;
    _jet removeWeapon "weapon_AMRAAMLauncher";
    _jet removeWeapon "weapon_AGM_65Launcher";
    _jet removeWeapon "Laserdesignator_pilotCamera";
    _jet removeWeapon "weapon_GBU12Launcher";
    [_jet,"weapon_Fighter_Gun20mm_AA",1] call BIS_fnc_addWeapon;
    };
     


  7. Just now, cookies2432 said:

    What does your current script look like? For rearming.

    veh = vehicle player;

    _spd = speed veh;
    engOn = false;
     veh engineOn false;
     waitUntil {!isEngineOn veh};

     _i = 20;
     while {_i > 0} do {
         _i = _i -1;
         sleep (1);
         if (engOn) exitWith {};
         hintSilent format [   "%1 Seconds Left"  ,   _i   ];
     };
     hint "GO GO GO!!";

    veh setFuel 1;

    veh setDamage 0;

    veh setVehicleAmmo 1;


  8. hi guys, i'm in the middle of creating an mp mission. It's my first project and i'm excited to see how far it's come, but i have hit a snag. I've customized the new jets main cannons (i.e added more ammo to the gryphons cannon and so on).  but unfortunately every time i pull into the rearm bay to refuel and rearm it changes the main cannon back to what it was originally. is anyone able to help me with this problem?


  9. On 5/3/2017 at 9:10 AM, pierremgi said:

     

    Something like that?

    In initPlayerLocal.sqf:

    
    addMissionEventHandler ["Draw3D", {
      _this call {
        {drawIcon3D ["", [1,1,0.15,1], [visiblePosition _x select 0 , visiblePosition _x select 1, (ASLToAGL(visiblePositionASL _x) select 2 )+ 2.5],0,0,0,name _x,1, 0.03,"EtelkaMonospacePro"]} forEach (allUnits select {side _x == playerSide})}}];

     

    so with this script is there a way to remove the name tag from your own player, i'm pretty new to the scripting game and was just wondering.

×