Jump to content

GODSPEEDSNAKE

Member
  • Content Count

    74
  • Joined

  • Last visited

  • Medals

Posts posted by GODSPEEDSNAKE


  1. Hi All so I have a vehicle with the variable name "jp1" and in the init field

     

    "

    jp1 setPlateNumber "RCKN ROLLN" ; jp1 setObjectTextureGlobal [0, "gui\jp\JPbody.paa"];

    "

    Then I have synced it to a vehicle respawn module, works fine but when it respawns the licence plate and the vehicle texture doesnt update.

    Been trying to rack my head around it for hours with no luck, anyone know how to get INIT to refire when respawning?


  2. Hi guys so I have this its kind of working but it's not running down and waiting for the on map single click before moving forward??? I am so unsure of how to fix it

     

    if (hasInterface) then {
    
    player removeAction FireLaser;
    sleep 1;
    
    [
    	[
    		["ARC REACTOR STATUS:", "<t align = 'center' color = '#ffffff' shadow = '1' size = '0.7' font='PuristaBold'>%1</t>"],
    		["Powering up...", "<t align = 'center' color = '#FF0000' shadow = '1' size = '0.7'>%1</t><br/>"],
    		["Awaiting Target Co-ordinates", "<t align = 'center' color = '#00DD14' shadow = '0' size = '1.0' font = 'PuristaMedium'>%1</t>", 15]
    	]
    ] spawn BIS_fnc_typeText;
    
    sleep 10;
    
    openMap true;
    onMapSingleClick
    {
    	FireLaser = "Land_HelipadEmpty_F" createVehicle _pos;
    	FireLaser setVehicleVarName "beamTarget";
    	beamTarget = FireLaser;
    	[beamTarget, [0,0,1], [0.3,0.27,0.15]] remoteExec ["DREAM_beam_fnc_beam", 0, false]};
    	_handle = execVM "server\satcomLaser\laserFired.sqf";
    };
    hint "Click on the map position to authenticate the target";

    Its all fine up till openMap true; and then it just quickly flicks to map and back to game without staying on map and waiting for the input. Anyone know why its doing this or where I went wrong?


  3. okay update so I scripted this and ran it and now works again BUT the player doesn't disappear now for some weird reason?!?!

    if (hasInterface) then {
    
    private["_PD"];
    
    _PD = _this select 0;
    
    _PD setvariable ["no_grl", true];
    _PD setvariable ["cloaked", true];
    [_PD] spawn pred_FNC_Dis;
    sleep 2;
    _PD say3d "camo_on";
    _PD setUnitTrait ["camouflageCoef",0.00001];
    _PD setUnitTrait ["audibleCoef", 0.05];
    sleep 1;
    _PD hideObjectGlobal true;
    
    };

    The hideObjectGlobal true; doesnt seem to work now 😞


  4. Hey all,

    Been trying to work it out but nothing seems to be working... When I been testing it as the host was working but when uploading to a server to play multiplayer on... Basically im trying to have this fired on the server but for all players to see or in this case not see the player because they become invisible.

     

    if (isServer) then {
    
    private["_PD"];
    
    _PD = _this select 0;
    
    _PD setvariable ["no_grl", true];
    _PD setvariable ["cloaked", true];
    [_PD] spawn pred_FNC_Dis;
    sleep 2;
    _PD say3d "camo_on";
    _PD setUnitTrait ["camouflageCoef",0.00001];
    _PD setUnitTrait ["audibleCoef", 0.05];
    sleep 1;
    _PD hideObjectGlobal true;
    
    };

    So this works when i host and test play it... The if (isServer) then but I originally used if (hasInterface) but that doesn't work when we test on the server. Any help would be great...


  5. Hey still getting problems with this?? WTF is going on in BI?? Can't they keep the units website working or something? Like we did fine without it now they added it and bam 6 years later just issues.... Can we fix it for real? Like just patch it up and bam works again properly? Or we doing a DayZ standalone on this mutha fuka??

    • Confused 1

  6. On 10/16/2021 at 10:54 AM, Melody_Mike said:

    @GODSPEEDSNAKE I got inspiration for creating a jumpscare in my "horror" mission using BIS_fnc_dynamicText, thanks!

    May I ask why you made this function, instead of using BIS_fnc_initLeaflet ?
    Or is the image meant to appear with a different interaction/trigger?

    Eg: https://community.bistudio.com/wiki/File:a3_orange_leaflets_preview.jpg

     

    @Melody_Mike With the campaign I'm working on I just kept the formation of letters, notes, radio conversation recordings, speech recordings and a bunch of other things so to keep all the coding and scripting relatively simple and easy to manage I just kept using the similar formats for file management...

    Like the campaign has pre recorded voice and used some actors to speak what is scripted to immerse the players into the mission, then I have random letters, notes and bits of information all over the island giving clues and hints on where to go next, what to do and forward the investigation. Not to mention meeting random NPC's that have scripted conversations with the player units depending on whats asked... So kinda going all out with the immersive interaction  with forwarding the mission...


  7. @soldierXXXX yeah bro no idea but since been working fine as long as I kept the aspect ratio so arms up in the air just going along with it... I do have another issue I can't wrap my head around... So I attach this to the object to activate the GUI over screen to "read the letter", and does work fine activates for everyone but I can't make it limited to u have to be within a certain distance from the item or object;

     

    criticalNote = note1 addAction ["Read Critical Information...", {[[_this select 0], "scripts\mission\note\criticalNote.sqf"] remoteExec ["execVM", 0, true];}];


    Now that works fine... Adds the action and executes it globally so all players of the unit can see it...

    But I can't seem to add the;
     

    "(_target distance _this) < 3"


    into the equation for it to work as I have done here;

     

    this addAction ["<t color='#00aeff'>ARSENAL</t>","scripts\arsenal.sqf", [false], 1, false, true, "", "(_target distance _this) < 3"];


    Basically wish to be able to execute the addAction and have all player units see the letter but whom ever clicks the addAction must be say 1-2 meters from the item or object...

    Know what I am doing wrong?


  8. Yeah I did, played around with the paa rule of squared size! I did find the problem dont know why it is but for anyone struggling with the same or similar issue...

    Up to 512x512 size works but not 1024x1024 and onwards... No idea why but yeah png can be converted to paa but if u want it on the ingame dont go larger than 512x512...

    Screen Shot of working GUI

    Testing some more but yeah she works as intended... Thanks guys for ur help though, only way to get through all these testing issues 🙂

    • Like 1

  9. 42 minutes ago, 7erra said:

    What size is the image? It has to be x^2 * y^2, eg. 256x256, 1024x64 etc.


    Yeah 7erra, at first i didnt have that and worked, then I did it with the 2N in mind and did a png canvas 1024 x 1024 and still no go... I dont know if it is png converting to paa that is the issue though the reason im doing it is so its not a square image but I may have to just bite the bullet and do it like that... I know Arma engine only takes paa BUT does take jpg when coded like for the sample I did above but not png...

    I'm just kind of hoping someone may have a work around...


  10. Hi all,
    Been meddling for hours with this and it should be working simply but for some reason it JUST... IS ... NOT...

    So been working at spawning an image on the screen instead of text, which is working fine via this;

     

    if (hasInterface) then {
    
    sleep 1;
    "DynamicBlur" ppEffectEnable true;
    "DynamicBlur" ppEffectAdjust[5];
    "DynamicBlur" ppEffectCommit 3;
    sleep 0.5;
    
    ["<img image='gui\codeLetter.paa' shadow='0' size='14' />",0.7,0,5,1,0,1000] spawn bis_fnc_dynamicText;
    
    sleep 5;
    "DynamicBlur" ppEffectEnable true;
    "DynamicBlur" ppEffectAdjust[0];
    "DynamicBlur" ppEffectCommit 3;
    sleep 2;
    
    };

    Now it all works fine however the image shows up as a faded dark thingy... When I spawn a jpg it works fine but ofcourse due to the image it will show the white sides of the ripped paper, however I did convert it from a png to paa as Arma don't use png format.

    Am I converting wrong I used the TexView 2 and tried the online PAA converter. which has worked for other things but not this... 

     

    Screen Shot of What happens

    Image of what should be on screen

    Hope someone can help me, thanks all in advance...

    RH

     

     


  11. Hi all, been bugging around for hours now with no luck getting ALL LIGHTS on the Chernarus Redux map to turn off. Have managed to get most of them off with the following sqf

     

    call{{  
    _x setHit ["light_1_hitpoint", 0.97];  
    _x setHit ["light_2_hitpoint", 0.97];  
    _x setHit ["light_3_hitpoint", 0.97];  
    _x setHit ["light_4_hitpoint", 0.97];  
      
    } forEach nearestObjects [thisTrigger, [  
      
    "Lamps_Base_F",
    "PowerLine_01_pole_lamp_F",
    "PowerLines_base_F",
    "Land_PowerLine_02_pole_small_lamp_F",
    "Land_PowerPoleWooden_L_F",
    "Land_PowerPoleWooden_F",
    "Land_LampHarbour_F",
    "Land_LampShabby_F",
    "Land_PowerPoleWooden_L_F",
    "Land_PowerPoleWooden_small_F",
    "Land_LampDecor_F",
    "Land_LampHalogen_F",
    "Land_LampSolar_F",
    "Land_LampStreet_small_F",
    "Land_LampStreet_F",
    "Land_LampStreet_02_F",
    "Land_LampStreet_02_double_F",
    "Land_LampAirport_F",
    "Land_LampStadium_F",
    "Land_Lamp_Small_EP1",
    "Land_Lampa_ind" 
      
    ], 10000]; 
     
    _lamps = nearestObjects [thisTrigger, ["Land_PowerLine_01_pole_lamp_F"], 10000];   
       
    {   
     for "_i" from 0 to count getAllHitPointsDamage _x -1 do   
     {   
      _x setHitIndex [_i, 0.97];   
     };   
    } forEach _lamps;}

     

    Now everything there works fine however the following objects don't turn off unless I one by one "cursorObject switchLight "ON";"

     

    "Land_NAV_Lighthouse"
    "Land_Ind_Expedice_1"
    "Land_Ind_Expedice_2"
    "Land_Mil_Guardhouse"
    "Land_Vez_Silo"
    "Land_Ind_Vysypka"

    "Land_PowLines_Conc2L_EP1"
    "Land_PowLines_WoodL"

    "Land_NavigLight"
    "Land_NavigLight_3_F"


    I'm wondering is there anyway I could do something like
     

    ("Land_NAV_Lighthouse", "Land_Ind_Expedice_1", "Land_Ind_Expedice_2", "Land_Mil_Guardhouse", "Land_Vez_Silo", "Land_Ind_Vysypka") switchLight "OFF";

    Just that the above is wrong 😞 any help would be much appreciated and thank u in advance...


  12. Hey all is there any way to turn all the lights off on this Chernarus Redux map... I have used a script which has managed to turn most off however some buildings and street lights just wont work?!?!?

    List of Object names being stubborn...

     

    "Land_NAV_Lighthouse"
    "Land_Ind_Expedice_1"
    "Land_Ind_Expedice_2"
    "Land_Mil_Guardhouse"
    "Land_Vez_Silo"
    "Land_Ind_Vysypka"


    "Land_PowLines_Conc2L_EP1"
    "Land_PowLines_WoodL"

    "Land_NavigLight"
    "Land_NavigLight_3_F"

     

    As for the script I'm using its;

     

    call{{ 
    _x setHit ["light_1_hitpoint", 0.97]; 
    _x setHit ["light_2_hitpoint", 0.97]; 
    _x setHit ["light_3_hitpoint", 0.97]; 
    _x setHit ["light_4_hitpoint", 0.97]; 
     
    } forEach nearestObjects [thisTrigger, [ 
     
    "Lamps_Base_F", "PowerLine_01_pole_lamp_F", "PowerLines_base_F", "Land_PowerLine_02_pole_small_lamp_F", "Land_PowerPoleWooden_L_F", "Land_PowerPoleWooden_F", "Land_LampHarbour_F", "Land_LampShabby_F", "Land_PowerPoleWooden_L_F", "Land_PowerPoleWooden_small_F", "Land_LampDecor_F", "Land_LampHalogen_F", "Land_LampSolar_F", "Land_LampStreet_small_F", "Land_LampStreet_F", "Land_LampStreet_02_F", "Land_LampStreet_02_double_F", "Land_LampAirport_F", "Land_LampStadium_F" 
     
    ], 10000];
    
    _lamps = nearestObjects [thisTrigger, ["Land_PowerLine_01_pole_lamp_F"], 10000];  
      
    {  
     for "_i" from 0 to count getAllHitPointsDamage _x -1 do  
     {  
      _x setHitIndex [_i, 0.97];  
     };  
    } forEach _lamps;}

    I have taken the stubborn ones not working out of this script but really not sure what to do 😞


  13. Hi all sorry been searching for ages trying to make it work and the last part of this script just doesn't seem to work, I know I must be doing something wrong :( pls help...

    I managed to get the script to work and the box spawns near the player however I'm trying to get the 'init' for the spawned item to work attaching either the 'arsenal' addAction or filling the box cargo up with ammo and weapons' The issue is getting the 'init' to work

     

    _spawn = "Land_WoodenBox_F";
    _posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
    _dirplr = getDir player;
    _spwnveh = _spawn createVehicle (_posplr);
    _spwnveh setVariable ["Sarge",1,true];
    _spwnveh = setVehicleInit ["this addAction "<t color='#00aeff'>ARSENAL</t>","scripts\arsenal.sqf", [false], 1, false, true, "", "(_target distance _this) < 3"];

     


  14. Sorry roadkill11 but I only get this message when going to that link 

    PAGE NOT FOUND The page you were looking for was not found.

     

    Are you hinting at that its listed to be able to charge Arma 3 game owners?!? If BI is cool with it then so be it. Just as far as I knew that shit was illegal...

     

    Never mind thank you guys for that :)

     

    Sure enough they are on there.


  15. [[tom, dick, harry]] call BIS_fnc_EXP_camp_IFF;
    

    That works fantastic... However is there a way to make it run for which ever players join the server? so instead of manually adding each person that's labeled all playable players, cause what i found is butting all the player names in causes an error when joining server because one or two might not be avail cause of say 5 player co-op but 3 play.

     

    eg: and sorry for being noob.

    [[_player]] call BIS_fnc_EXP_camp_IFF;
    
×