Jonyk

Deploy - Pack Quad and Unit Scanner

8 posts in this topic

On 3/12/2018 at 0:19 AM, Jonyk said:

Deploy - Pack Quad and Unit Scanner in new XM8APP
Download

Hi Jonyk, I added the Deploy Quad bit but when I try to deploy the quad from the XM8 it takes the Duct Tape but does not spawn a quad. My configs are in the spoilers below. BTW, I don't have a init.sqf in my mission pbo so I put the #include bit in my initPlayerLocal.sqf. Can you tell me what I am doing wrong?

Thanks!

Spoiler

initPlayerLocal.sqf

///////////////////////////////////////////////////////////////////////////////
// Static Objects
///////////////////////////////////////////////////////////////////////////////

// Taken away for now
//#include "initServer.sqf"

// Deploy/Scrap Bike Functions
#include "Custom\xm8Apps\DeployQuad\createBike.sqf";
fnc_bike_deploy = compileFinal preprocessFileLineNumbers "Custom\xm8Apps\DeployQuad\deployBike.sqf";
fnc_bike_scrap = compileFinal preprocessFileLineNumbers "Custom\xm8Apps\DeployQuad\scrapBike.sqf";

if (!hasInterface || isServer) exitWith {};

///////////////////////////////////////////////////////////////////////////...

Spoiler

config.cpp

...

class XM8_App05_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "Custom\xm8Apps\DeployQuad\icon_DeployVehicle.paa";
    text = "Deploy Quad";
    onButtonClick = "call fnc_bike_deploy;";
    resource = "";
};

...

 

Share this post


Link to post
Share on other sites
Advertisement
2 hours ago, Vladick said:

Hi Jonyk, I added the Deploy Quad bit but when I try to deploy the quad from the XM8 it takes the Duct Tape but does not spawn a quad. My configs are in the spoilers below. BTW, I don't have a init.sqf in my mission pbo so I put the #include bit in my initPlayerLocal.sqf. Can you tell me what I am doing wrong?

Thanks!

  Reveal hidden contents

initPlayerLocal.sqf

///////////////////////////////////////////////////////////////////////////////
// Static Objects
///////////////////////////////////////////////////////////////////////////////

// Taken away for now
//#include "initServer.sqf"

// Deploy/Scrap Bike Functions
#include "Custom\xm8Apps\DeployQuad\createBike.sqf";
fnc_bike_deploy = compileFinal preprocessFileLineNumbers "Custom\xm8Apps\DeployQuad\deployBike.sqf";
fnc_bike_scrap = compileFinal preprocessFileLineNumbers "Custom\xm8Apps\DeployQuad\scrapBike.sqf";

if (!hasInterface || isServer) exitWith {};

///////////////////////////////////////////////////////////////////////////...

  Reveal hidden contents

config.cpp

...

class XM8_App05_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "Custom\xm8Apps\DeployQuad\icon_DeployVehicle.paa";
    text = "Deploy Quad";
    onButtonClick = "call fnc_bike_deploy;";
    resource = "";
};

...

 

in createBike.sqf try removing one of the 2 quads that are in there

before

        _vehicleArray = ["Exile_Bike_QuadBike_Black", "Exile_Bike_QuadBike_Black"];

After

        _vehicleArray = ["Exile_Bike_QuadBike_Black"];

Share this post


Link to post
Share on other sites
2 hours ago, Thomas1973 said:

in createBike.sqf try removing one of the 2 quads that are in there

before

        _vehicleArray = ["Exile_Bike_QuadBike_Black", "Exile_Bike_QuadBike_Black"];

After

        _vehicleArray = ["Exile_Bike_QuadBike_Black"];

Thanks for the reply Thomas. I tried your suggestion but it still takes the duct tape and doesn't spawn a quad. Any other suggestions? Thanks!

Share this post


Link to post
Share on other sites

BTW, do I need ExAd installed in order to make this work. I've been searching hard for a resolution to my issue but I can't find one. There are a few other posts where they talk about needing ExAd but I believe this script was developed after that. Anyone?

Share this post


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

Ya I had a brain fart, you need a script on the server side to spawn in a vehicle, stand alone on client side will not work

No worries. Can you recommend or point me to the script I need to install server side? Thanks!

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.