Barotrauma

Barotrauma

Barotrauma Workshop
You can build your own submarines and monsters with in-game editors and share your creations with other players. Imagine and experiment.
0.01 KD 12 May, 2024 @ 2:53am
how to spawn npc with high quality item?
As example - revolver

I have tried the next variants of the code, but all they dosen't work ((

<Item identifier="revolver" quality="1" equip="false"/>
<Item identifier="revolver" qualitylevel="1"equip="false"/>
<Item identifier="revolver" equip="false">
<Quality qualitylevel="1" />
</Item>

all these variants spawn normal version of revolver...

Who can help and to explain how to spawn npc with high quality item ?

Also, if possible, is there a way to create a high quality variant in

<PreferredContainer primary=

and

<PreferredContainer secondary=

?
Last edited by 0.01 KD; 12 May, 2024 @ 2:58am
< >
Showing 1-2 of 2 comments
0.01 KD 14 May, 2024 @ 8:38am 
no answers.. so this is impossible through xml? :(

and possible only through sub and assembly?

I very need this through xml....
Buggy Boy 10 14 May, 2024 @ 11:11am 
You might try examining the item spawn code used for wrecks, as they can sometimes spawn higher quality tools and weapons in the lockers etc. Can't tell you where that is though, sorry.
< >
Showing 1-2 of 2 comments
Per page: 1530 50