Jump to content
  • 0
Cyrus

Epoch 1.0.6.2 Chernarus Traders working fuel pump

Question

I have placed a fuel pump in starry using a custom script. The fuel pump is there and accessible but i would like to know how i can make it work with out the need of having to place a generator or a running fuel ural. by default it acts the same way a placeable fuel pump works picked up in the world. 

Here is the code that use to spawn the fuel pump. 

_vehicle_344 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_FuelStation_Feed", [6325.166, 7715.0869, 0.15837258], [], 0, "CAN_COLLIDE"];
  _vehicle_344 = _this;
  _this setDir -52.000465;
  _this setPos [6325.166, 7715.0869, 0.15837258];
};

Any help will be appreciated.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

@Cyrus Couple of ways to do this.

 

1. Change

Land_A_FuelStation_Feed

into

Map_A_FuelStation_Feed

 

2. Add your vehicle traders to the service points

_servicePointClasses = ["Profiteer4","RU_Profiteer4","GUE_Soldier_2","UN_CDF_Soldier_Pilot_EP1","Map_A_FuelStation_Feed","Land_A_FuelStation_Feed","FuelPump_DZ"];

 

3. Add your current map object to the service points

_servicePointClasses = ["Land_A_FuelStation_Feed","Map_A_FuelStation_Feed","Land_A_FuelStation_Feed","FuelPump_DZ"];

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By calinova22
      How would I go about adding custom vehicles to my server? I want to have an F35B with no weapons. I know how to remove the weapons, just cant find the file for the jet itself to edit.
    • By Cyrus
      I found this on another forum, but seeing as I am truly dedicated to this one, I thought I'd share what i have found concerning the question I see a lot of people ask regarding default loadouts for everyone, including respawns and new players to the server. Its customizable with current 1.0.6.2 class IDs.
      Unpack dayz_server.pbo and navigate to the compiles folder. Open the file named server_playerlogin.sqf. Find the follow block of code :
      _config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default"); _mags = getArray (_config >> "magazines"); _wpns = getArray (_config >> "weapons"); _bcpk = getText (_config >> "backpack"); _randomSpot = true; _key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]]; _key call server_hiveWrite; and comment this out by adding /* */ to the top and bottom of this code block. Like this 
      /* _config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default"); _mags = getArray (_config >> "magazines"); _wpns = getArray (_config >> "weapons"); _bcpk = getText (_config >> "backpack"); _randomSpot = true; _key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]]; _key call server_hiveWrite; */ Then directly underneath this paste the following and configure to your liking. I have tried this and it works.  To understand the logic, it is pointless to add a custom sqf in the mission folder, whether it be inside the init.sqf or a "exeVM" or a "call" method pointing to another custom sqf file seeing as the init is processed before server_playerlogin.sqf. 
      _randomSpot = true; _inventory = [["ItemFlashlight","ItemMap","ItemGPS","NVGoggles","AK_74"],["ItemBandage","ItemPainkiller","30Rnd_545x39_AK"]]; _backpack = ["DZ_ALICE_Pack_EP1",[],[]]; _key = format["CHILD:203:%1:%2:%3:",_charID,_inventory,_backpack]; _key call server_hiveWrite; Here is a list of most of the class ID's currently being used. Not all of them are there, but for this purpose you will find it more than adequate.
      https://forums.dayz.com/topic/137361-dayz-chernarus-class-ids/ 
      Finally we can now lay this beast to rest. Hope this will help many solve their default loadouts. I can recommend <ESSV3>  by @ebayShopperif you need more than a single loadout for all spawns.
    • By Cyrus
      I have been finding that some people on my server has been losing base walls and floors even though DZE_godmodebase = true; , it has no effect on anything built inside the plot radius. So i have come to the conclusion that base items might receive damage on age and this ultimately being removed by server cleanup script. So my question is if I drop this event below will that stop me and others from losing base walls and floor? Or at the minimum update it without any cinder wall items?
      like this  and set damage to 0.001:
       
    • By Cyrus
      Im looking for an easy, effective way to randomize loot (weapons, ammo, toolbelt items, food, meds and building supplies) in static crate. I have a placed crate already and populated with stuff but i would like to have this random on spawn. Also i would like to know how to have this crate stay for 2 hours then destroy and respawn 15 min later. This is what my customLootCrate.sqf looks like :
       
    • By Cyrus
      I have just managed to install the latest version of InfiSTAR v1448. Since then I am getting an error when logging into the server. "\z\addons\dayz_server\compile\server_maintainArea.sqf" not found." I have looked and the file is present at that location. And in my server_functions.sqf it is called correctly.
      server_maintainArea = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_maintainArea.sqf"; Would there be any reason why this call would fail?
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...