Jump to content
Sign in to follow this  
hamis

Addon script question

Recommended Posts

Well,is there a way to make gdtmodhdr to work when you load/resume mission?Something like ECS mod scripts?

Share this post


Link to post
Share on other sites

Well,this is config of the mo if it helps to find a way to make it work:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches {

class GDTModHDR {

units[] = {};

weapons[] = {};

requiredVersion = 0.14;

requiredAddons[] = {"Extended_EventHandlers"};

};

};

class Extended_Init_EventHandlers

{

class Man

{

GDTModHDR_Init_Man="_this execVM ""\GDTModHDR\GDTModHDR.sqf"";";

};

};

And this is gdtmodhdr.sqf:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">sleep 1;

if (not (isnil ("GDTModHDRValue"))) ExitWith {};

GDTModHDRValue = -1;

Private["_keyspressed"];

setAperture GDTModHDRValue;

GDTModHDRKeypressed = compile preprocessFile "\GDTModHDR\GDTModHDRKey.sqf";

(findDisplay 46) displaySetEventHandler ["KeyDown","_this call GDTModHDRKeypressed"];

Share this post


Link to post
Share on other sites

Same thing happens with random numbers/markings for vehicles like RHS_T64 and others,when i have to load or resume aborted mission they are gone!What's wrong with this game? banghead.gifbanghead.gifbanghead.gif

Share this post


Link to post
Share on other sites

Does this issue have something to do with save features of arma?

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//sleep 1;

sleep 0.1;

waitUntil {time == 0};

GDTModHDR_Init_Man="_this execVM ""\GDTModHDR\GDTModHDR.sqf"";";

if (not (isnil ("GDTModHDRValue"))) ExitWith {};

GDTModHDRValue = -1;

Private["_keyspressed"];

setAperture GDTModHDRValue;

GDTModHDRKeypressed = compile preprocessFile "\GDTModHDR\GDTModHDRKey.sqf";

(findDisplay 46) displaySetEventHandler ["KeyDown","_this call GDTModHDRKeypressed"];

I tried this but no help any ideas? help.gifhelp.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×