4amMadman

Make a script run as part of default UI?

5 posts in this topic

So I'm running Exad's suite of xm8 based apps. Exad has the ability to add extra apps that (once the idd's are allowed by infistar) will show as an xm8 app button and can be triggered. 
The code for the app in question is like so:

Spoiler

class Compass 
    {
        title = "Compass";
        controlID = 97000;                     
        logo = "ExAdClient\XM8\Apps\compass\compass.paa";
        quickFunction = "ExileClientXM8CurrentSlide = 'apps';closeDialog 0;[] execVM 'ExAdClient\XM8\Apps\compass\voyagerCompass.sqf'";
    };

Is it possible to have this script start on player load in as a sort of default UI element, rather than players having to click the button on the tablet to trigger it?

Share this post


Link to post
Share on other sites
1 hour ago, 4amMadman said:

So I'm running Exad's suite of xm8 based apps. Exad has the ability to add extra apps that (once the idd's are allowed by infistar) will show as an xm8 app button and can be triggered. 
The code for the app in question is like so:

  Hide contents

class Compass 
    {
        title = "Compass";
        controlID = 97000;                     
        logo = "ExAdClient\XM8\Apps\compass\compass.paa";
        quickFunction = "ExileClientXM8CurrentSlide = 'apps';closeDialog 0;[] execVM 'ExAdClient\XM8\Apps\compass\voyagerCompass.sqf'";
    };

Is it possible to have this script start on player load in as a sort of default UI element, rather than players having to click the button on the tablet to trigger it?

add this to you initPlayerLocal 

[] execVM 'ExAdClient\XM8\Apps\compass\voyagerCompass.sqf'

 

Share this post


Link to post
Share on other sites
Advertisement
On 10/18/2017 at 1:56 AM, StokesMagee said:

add this to you initPlayerLocal 


[] execVM 'ExAdClient\XM8\Apps\compass\voyagerCompass.sqf'

 

That's so simple I dunno why I didn't think of it. Thanks so much. 

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.