• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Why can't I get a headlight to work on gyrocopter?

Krougal

New member
Modding (2 separate files of course)

<append xpath="/vehicles/vehicle[@name='vehicleGyrocopter']">
<property class="headlight">
<property name="class" value="Headlight" />
<property name="transform" value="Origin/handlebars" />
<property name="bright" value=".9" />
</property>
</append>

<set xpath="/items/item[@name='vehicleGyrocopterPlaceable']/property[@name='Tags']/@value">vehicle,vengine,vfuel,vlight,canHaveCosmetic</set>


ConfigsDump:

Snipped from vehicles.xml
<property class="headlight">
<!--Element appended by: "Krougal_QuieterDurableVehicles"-->
<property name="class" value="Headlight" />
<property name="transform" value="Origin/handlebars" />
<property name="bright" value=".9" />
</property>
</vehicle>
Snipped from items.xml
<item name="vehicleGyrocopterPlaceable">
<property name="Extends" value="vehicleMinibikePlaceable" />
<property name="Tags" value="vehicle,vengine,vfuel,vlight,canHaveCosmetic">
<!--Attribute "value" replaced by: "Krougal_QuieterDurableVehicles"-->
</property>


Results ingame:

@%$# all.

Am I doing something wrong, is there another related config or is it because there is no headlight on the model? I mean it is @%$#ing stupid that there is no light, especially since the recipe takes 8. Supposedly this was on Fataal's todo list from like A18 but never got done. Do I need to learn to edit unity assets now? I expected this to be a simple thing, I've also played with various origin points to try to make it work, all no go.

 
Last edited by a moderator:
I have not messed with vehicles very much, but I think you would be correct in  that the model not having a light source means that adding a headlight In  the xml will not do anything, as it generally just acts as a trigger for the light on the model.

 
Back
Top