0X2AFF

Simple Deploy Bike for InfiSTAR's XM8Custom Apps

28 posts in this topic

Really cool script but i don't like the fact you need duct tape to deploy bike because bambis will be using it and they don't have duct tape and the only other time i would use it is when i need to go to the trades when i crash to get duct tape but i couldn't use my bike because i don't have duct tape so i just don't see it being used but other than that its really cool and i like the animations

Share this post


Link to post
Share on other sites
Advertisement

It's not that hard to change that.
Or to let Bambis spawn with a Duct Tape :)

deployBike.sqf line 6

if ("YOUR ITEM ID" in (magazines player)) then { 

or for a not magazine type item

if ("YOUR ITEM ID" in (assigneditems player + items player)) then { 

deployBike.sqf line 8

 player removeItem "YOUR ITEM ID";

scrapBike.sqf line 9

player additem "YOUR ITEM ID";

 

Edited by 0X2AFF
  • Like 1

Share this post


Link to post
Share on other sites

Replace the contents of create_bike.sqf with this:

if (isServer) then
{
    "do_CreateBike" addPublicVariableEventHandler
    {
        private ["_parameters","_position","_vehicleArray","_rVehIndex","_vehicle","_spawnDir","_veh"];
        _parameters = _this select 1;
        _position = _parameters select 1;
        _spawnDir = (_parameters select 2) - 90; //not sure what the point is of turning it sideways is, take out - 90 if you don't want it
		
        _vehicleArray = ["Exile_Bike_Oldbike", "Exile_Bike_MountainBike"];
        _rVehIndex = floor (random (count _vehicleArray));
        _vehicle = _vehicleArray select _rVehIndex;
		
        _veh = createVehicle[_vehicle, [0,0,0], [], 0, "CAN_COLLIDE"];
        _veh setposATL _position;
        _veh setDir _spawnDir;
    };
};

Just looking at the code it's not right. I haven't tested this, but it will probably fix it.

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.