Results 1 to 4 of 4
  1. #1
    liridonx92's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0

    Vehicle script help

    How do i add An ammobox inside a vehicle that i spawn, im using RustlerShyt's undetected vehicle script, so to clarify, how could i add tons of weapons inside the gear of the vehicle or even a ammobox inside the vehicle? here is thee script and thread link , any help is appreciated.

    https://www.mpgh.net/forum/624-dayz-m...awn-no-re.html

    /*
    == [ Undetected Vehicle Spawn No RE ] ==
    [Made by Rustler 6/2]

    Info: This script has a classname scanner to check if the incoming classname will kick you

    If you are using this as a vehicle spawn script for a menu, replace

    _classname = "VehicleClassNameHere";
    with
    _classname = _this select 0;
    */

    _classname = "M1126_ICV_M2_EP1";


    //return combos of first 5 chars
    fn_genStrFront =
    {
    _array = toArray (_this select 0);
    _count = (_this select 1) - 1;
    _max = (count _array) - 1;
    _Num = [];
    for '_i' from 0 to _count do
    {
    if !(_i > _max) then {_Num = _Num + [_array select _i];};
    };
    _firstNum = toString _Num;
    _firstNum
    };

    //return combos of last 5 chars
    fn_genStrBack =
    {
    _array = toArray (_this select 0);
    _count = (_this select 1) - 1;
    _max = (count _array) - 1;
    _Num = [];
    for '_i' from 0 to _count do
    {
    if !((_max - (_count - _i)) > _max) then {_Num = _Num + [_array select (_max - (_count - _i))];};
    };
    _firstNum = toString _Num;
    _firstNum
    };

    //list of kickable strings from createvehicle.txt
    kickable = ["SEAGULL","BOX","MINE","SADARM_","LASER_","WP_","_ MLRS","_81","_82","_105","_120","_122","_227","_AA ","_AT",
    "_AP","_80","_57","_85","_100","_125","_30","_IED" ,"_CRV7","_MEEWS","_SMAW","_GRAD","_SABOT","_SH"," KORD","DSHKM","MK19",
    "AGS","NEST_","R_PG","R_OG","B_","_YAKB","COCK","P ARACHUTE","LAND_","BBARRACKS","_LHD_","_ACR","MASH _","FORT_","BASICWEAPONS","SPECIALWEAPONS","_UA V"];

    //return all possible combinations from _classname
    possible = [];
    for '_i' from 2 to 6 do
    {
    _charFront = [_classname,_i] call fn_genStrFront;
    _charBack = [_classname,_i] call fn_genStrBack;
    possible = possible + [toUpper (_charFront)];
    possible = possible + [toUpper (_charBack)];
    };

    stop = false;
    //check if any possible outcomes match a kickable outcome, if true then abort script
    {
    if (_x in kickable) exitWith {hint ("ERROR: CHARS\n\n'"+_x+"'\n\nIN CLASSNAME\n\n'"+_classname+"'\n\nWILL KICK"); stop = true;};
    } forEach possible;

    waitUntil {!(stop)};
    hint ("Classname "+_classname+" is OK: Preparing to spawn!");
    /*=Scanning Done]==*/

    / goodbye exploding car
    allunits = [];
    publicVariable "allunits";

    sleep 0.5;
    _dir = getDir player - 90;
    _location = player modelToWorld [0,6,0]; //2lazy2doTrig

    //whitelist exploit tiem
    _object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];

    hint ('Spawning:\n'+_classname);

    _tent = _object;
    _tent setdir _dir;
    _tent setpos _location;
    player reveal _tent;

  2. #2
    brendan12's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Under your bed
    Posts
    154
    Reputation
    11
    Thanks
    24
    My Mood
    Breezy
    Umm.... You take the weapons out the box?? and put them in the car?

  3. #3
    alexw203's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    localhost
    Posts
    734
    Reputation
    12
    Thanks
    171
    My Mood
    Inspired
    Maybe he ment to spawn a car with weapons inside?

  4. #4
    brendan12's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Under your bed
    Posts
    154
    Reputation
    11
    Thanks
    24
    My Mood
    Breezy
    Quote Originally Posted by alexw203 View Post
    Maybe he ment to spawn a car with weapons inside?
    I read it a few times still not sure i think he wants the whole box with out doing the work of puting all the stuff in the car XD

Similar Threads

  1. [Help Request] Simple Autoit Script help
    By dalehohn13 in forum MapleStory Help
    Replies: 4
    Last Post: 08-09-2013, 12:49 AM
  2. [Help Request] Script help
    By matt1331 in forum MapleStory Help
    Replies: 0
    Last Post: 06-02-2013, 12:32 PM
  3. [Help Request] C++ Script Help - Garry's Mod - Forcing r_drawothermodels 2
    By Kai13shadow in forum C++/C Programming
    Replies: 3
    Last Post: 12-08-2012, 01:16 PM
  4. [Help] Vehicle Script Help
    By TornChewy in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 3
    Last Post: 10-21-2012, 03:58 AM
  5. [Help Request] JetBot script help (Two boss maps).
    By Z4ck in forum Vindictus Help
    Replies: 0
    Last Post: 02-20-2012, 08:19 AM