Schmidtch.

Spawn bike

2 posts in this topic

Hello,

I'm looking for spawn bike script for exile 0.9.8 "kiwi".
I tried to use "enigma respect vehicles", but when i installed it, my server get crashed..

Does anyone have this script maybe? E.g with scroll action :)

 

Regards,
Schmidtch.

Share this post


Link to post
Share on other sites
if !((vehicle player) isEqualTo player) exitWith {};

if ((nearestObject [player,'Exile_Construction_Abstract_Static']) distance player < 100) exitWith {
	(findDisplay 24015) closeDisplay 0;
	["ErrorTitleAndText", ["Action Failed", format ["You are to close a base"]]] call ExileClient_gui_toaster_addTemplateToast; 
};

if ((nearestObject [player,'Exile_Sign_WasteDump']) distance player < 100) exitWith {
	(findDisplay 24015) closeDisplay 0;
	["ErrorTitleAndText", ["Action Failed", format ["You are to close a safezone"]]] call ExileClient_gui_toaster_addTemplateToast; 
};

if (ExileClientPlayerIsInCombat) exitWith { 
	(findDisplay 24015) closeDisplay 0;
	["ErrorTitleAndText", ["Action Failed", format ["You are in combat"]]] call ExileClient_gui_toaster_addTemplateToast; 
};

(findDisplay 24015) closeDisplay 0;
_spawnPos = player modelToWorld [0,2,0];
_spawnDir = (getDir player) -90;
_veh = createVehicle["Exile_Bike_MountainBike", _spawnPos , [] ,0 , "NONE"];
_veh setDir _spawnDir;
["SuccessTitleAndText", ["Bike Deployed","Your radio have been removed"]] call ExileClient_gui_toaster_addTemplateToast;
_veh addEventHandler ["getin", "'down' cutText ['WARNING: DEPLOYED BIKES DO NOT SAVE OVER RESTART!!!','PLAIN DOWN'];"];

 

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.