Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Mostabdel

car spawn full

Recommended Posts

how i can change this for have cars spawn full FUEL, OIL, BRAKE & COOLANT ?

override void OnFluidChanged( CarFluid fluid, float newValue, float oldValue )
	{
		switch ( fluid )
		{
			case CarFluid.FUEL:
				m_FuelAmmount = newValue;
				break;

			case CarFluid.OIL:
				m_OilAmmount = newValue;
				break;

			case CarFluid.BRAKE:
				m_BrakeAmmount = newValue;
				break;

			case CarFluid.COOLANT:
				m_CoolantAmmount = newValue;
				break;
		}
	}

help pls !!!

Share this post


Link to post
Share on other sites

you can set them to spawn in with all items on and fuel,water,oil in the inventor if that helps here is the code you need just place in your cfgspawnabletypes.xml where the <type name="OffroadHatchback"> type is

 

<type name="OffroadHatchback">
		<attachments chance="1.00">
			<item name="HatchbackWheel" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackWheel" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackWheel" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackWheel" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackWheel" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="CarRadiator" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="CarBattery" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HeadlightH7" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HeadlightH7" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackDoors_Driver" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackDoors_CoDriver" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackHood" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackTrunk" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="SparkPlug" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="CanisterGasoline" chance="1.00" />
		</attachments>
		
		<attachments chance="1.00">
			<item name="EngineOil" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="EngineOil" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="EngineOil" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="WaterBottle" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="WaterBottle" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="WaterBottle" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="WaterBottle" chance="1.00" />
		</attachments>
	</type>

 

 

Share this post


Link to post
Share on other sites

×