ARZUMATA

Spawning Bike/QuadBike etc.

66 posts in this topic

Advertisement

NOTE BELOW SCRIPT IS NOT WORKING!!!

How would you add a pack bike option? I tried putting the following below in my initPlayerlocal.sqf

below 

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

I added

addAction ["Pack Bike","Scripts\Pack_Bike.sqf",0,0,true,true,"","(typeof cursortarget) == 'Exile_Bike_MountainBike' and _this distance cursortarget <5"];

and my Pack_Bike.sqf looks like this

if (ExileClientPlayerMoney < 9999999999999999) then {
    deletevehicle cursorTarget;
	player playMove "AinvPknlMstpSnonWnonDr_medic3";
    player addWeapon "ItemRadio";
} else {
};

Any suggestions because this would remove the bike and not add the radio but then would allow me to keep the action and delete whatever I was looking at.

I am a bambi when it comes to scripting......-_-

Edited by Austin

Share this post


Link to post
Share on other sites

Happy is there a way to use this even if your not a Bambi? I currently have it running like a charm but would prefer to have it be usable in a non Bambi state with radio click ......

 

Thanks so much Happy Days this is wonderful sir.. 

Share this post


Link to post
Share on other sites
On 12/21/2015 at 2:47 AM, Poptart4050 said:

Happy is there a way to use this even if your not a Bambi? I currently have it running like a charm but would prefer to have it be usable in a non Bambi state with radio click ......

 

Thanks so much Happy Days this is wonderful sir.. 

I also want  to do this but plan to use XM8 app scrip (http://www.exilemod.com/topic/9040-xm8-apps/) and remove poptabs from the playerdata...

  • Like 1

Share this post


Link to post
Share on other sites
3 hours ago, Lumi said:

I also want  to do this but plan to use XM8 app scrip (http://www.exilemod.com/topic/9040-xm8-apps/) and remove poptabs from the playerdata...

Happy is there a way to use this even if your not a Bambi? I currently have it running like a charm but would prefer to have it be usable in a non Bambi state with radio click ......

 

Thanks so much Happy Days this is wonderful sir.. 

 

 

 

 

Edited by Poptart4050

Share this post


Link to post
Share on other sites

mpmissions/your.pbo/init.sqf

if (isDedicated || isServer) then {"do_MakeBike" addPublicVariableEventHandler {_parameters = (_this select 1); _parameters2  =(_parameters select 1); diag_log format ["createVehicleRequested %1 ", _parameters]; veh = createVehicle["Exile_Bike_MountainBike", _parameters2 , [] ,0 , "NONE"]; }; };

mpmissions/your.pbo/startingloadout.sqf

uiSleep 2;
if (ExileClientPlayerMoney > 0) then {
uiSleep 1;
hint "Gear Supplied"; 
clearWeaponCargo player;
clearMagazineCargo player;
removeBackpackGlobal player;
player forceAddUniform "Exile_Uniform_ExileCustoms";
player addBackpack "B_Carryall_oucamo";
player addVest "V_TacVest_blk_POLICE";
player addWeapon "ItemRadio";
player addWeapon "ItemGPS";
player addWeapon 'Exile_Item_XM8';
player addWeapon "ItemCompass";
player addWeapon "Rangefinder";
player addItemToBackpack "Exile_Item_BBQSandwich_Cooked";
player addItemToBackpack "Exile_Item_Energydrink";
player addItemToBackpack "Exile_Item_InstaDoc";
player addItemToBackpack "hgun_Rook40_F";
player addItemToBackpack "U_O_OfficerUniform_ocamo";
player addItemToVest "16Rnd_9x21_Mag";
};

edit config.cpp

class CfgExileCustomCode {ExileClient_object_player_bambiStateBegin = "ExileClient_object_player_bambiStateBegin.sqf";};

 

 

All this parts are from Red cloud78: Posted 12 October

I want to show that with the smaller script the script will load faster.... Some of you guys have allot of custom scripts in a server... but allot of trash text in it what kinda make the server load bit slower then u kinda can improve...

Share this post


Link to post
Share on other sites

thx working great :)....well was until i added battleye, now im getting kicked for script restriction #0

how and where do i put the !="do_MakeBike" rule please anyone as i put !="do_MakeBike" in the publicvariable.txt

and it did nothing as i still got kicked

Edited by ][<3 F1RE05

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.