So I am working on a donor box script but a little stuck, my idea is a scroll wheel menu like the blue phonenix, where I can just choose deploy Box #1 or Box#2, It then executes the following script
if (isServer) then { _vehicle_999999 = objNull; if (true) then { _this = createVehicle ["TKVehicleBox_EP1", [8000.0,10000.0], [], 0, "CAN_COLLIDE"]; _vehicle_999999 = _this; _this setDir 20; clearWeaponCargoGlobal _this; clearMagazineCargoGlobal _this; _this addMagazineCargoGlobal ["30m_plot_kit", 1]; _this addMagazineCargoGlobal ["ItemWoodWallLg", 100]; _this addMagazineCargoGlobal ["ItemWoodFloor", 100]; _this addMagazineCargoGlobal ["ItemWoodWallWithDoorLgLocked", 15]; _this addMagazineCargoGlobal ["ItemWoodWallGarageDoorLocked", 5]; _this addMagazineCargoGlobal ["ItemWoodStairs", 25]; _this addMagazineCargoGlobal ["ItemWoodLadder", 25]; _this addMagazineCargoGlobal ["ItemDocumentRamp", 10]; _this addMagazineCargoGlobal ["cinder_wall_kit", 100]; _this addMagazineCargoGlobal ["cinder_garage_kit", 15]; _this addMagazineCargoGlobal ["cinder_door_kit", 15]; _this addMagazineCargoGlobal ["CinderBlocks", 250]; _this addMagazineCargoGlobal ["MortarBucket", 250]; _this addMagazineCargoGlobal ["PartGeneric", 250]; _this addMagazineCargoGlobal ["ItemPole", 100]; _this addMagazineCargoGlobal ["ItemTankTrap", 250]; _this addMagazineCargoGlobal ["metal_floor_kit", 100]; _this addMagazineCargoGlobal ["ItemVault", 2]; }; };
I am having a few issues, could I just use a self actions style of script then verify the UID? Also as you can see in the above code it states the worldspace, how can I change this to the current area of the player.
Thanks Aidan :-)