Jump to content
TheVampireBat

ADVICE AND GUIDANCE - POST TIPS HERE!

Recommended Posts

46 minutes ago, Sy8282 said:

someone will create an external mod soon enough i saw the battleroyale mod is client side as well as server side so its the beginning of the mods everyone will need a launcher soon enough

I hope not. I don't like the idea of 3rd party launchers. I never really have. Workshop, that's promising however.

Share this post


Link to post
Share on other sites

Hey, i wanted to spawn cars on my test server every time i join so i did this:

Quote

    EntityAI offroad = EntityAI.Cast(GetGame().CreateObject("OffroadHatchback", player.GetPosition(), false, true));

    offroad.GetInventory().CreateAttachment("HatchbackWheel");
    offroad.GetInventory().CreateAttachment("HatchbackWheel");
    offroad.GetInventory().CreateAttachment("HatchbackWheel");
    offroad.GetInventory().CreateAttachment("HatchbackWheel");
    offroad.GetInventory().CreateAttachment("HatchbackWheel");
    offroad.GetInventory().CreateAttachment("HatchbackDoors_Driver");
    offroad.GetInventory().CreateAttachment("HatchbackDoors_CoDriver");
    offroad.GetInventory().CreateAttachment("HatchbackTrunk");
    offroad.GetInventory().CreateAttachment("HatchbackHood");
    offroad.GetInventory().CreateAttachment("SparkPlug");
    offroad.GetInventory().CreateAttachment("EngineBelt");
    offroad.GetInventory().CreateAttachment("CarRadiator");
    offroad.GetInventory().CreateAttachment("CarBattery");
    offroad.SetAllowDamage(false);
    offroad = offroad.GetInventory().CreateInInventory("WaterBottle");
    itemBs = ItemBase.Cast(offroad);
    offroad = offroad.GetInventory().CreateInInventory("EngineOil");
    itemBs = ItemBase.Cast(offroad);
    offroad = offroad.GetInventory().CreateInInventory("CanisterGasoline");
    itemBs = ItemBase.Cast(offroad);
    offroad = offroad.GetInventory().CreateInInventory("NailBox");
    itemBs = ItemBase.Cast(offroad);
    offroad = offroad.GetInventory().CreateInInventory("NailBox");
    itemBs = ItemBase.Cast(offroad);
    offroad = offroad.GetInventory().CreateInInventory("MetalPlate");
    itemBs = ItemBase.Cast(offroad);
    offroad = offroad.GetInventory().CreateInInventory("MetalPlate");
    itemBs = ItemBase.Cast(offroad);
    offroad = offroad.GetInventory().CreateInInventory("Hammer");
    itemBs = ItemBase.Cast(offroad);
    offroad = offroad.GetInventory().CreateInInventory("hatchet");
    itemBs = ItemBase.Cast(offroad);
    offroad = offroad.GetInventory().CreateInInventory("MetalWire");
    itemBs = ItemBase.Cast(offroad);
    offroad = offroad.GetInventory().CreateInInventory("CombinationLock");
    itemBs = ItemBase.Cast(offroad);


 

But it does not add the items to the cars inventory, it only adds the first one - how can i spawn a car with more items then 1? And how can i spawn it whit fuel and oil inside? Also water could be attached to the cooler, but how?
The next thing that i want to know is, how to use this for normal spawned cars? How to have perfect repaired cars that spawn in the world. Its also an override void, isnt it? But which one? :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×