I'm not sure about the best example, but a few pointers I have learnt (mostly from mistakes..). I am presuming your editing all.spawn via acdc as I have never used xrspawner, I cannot help you there, sorry.
One off spawn
- Copy a spawn item for a mutant elsewhere
- Paste it over the top of an existing mutant, crow, or inanimate object
- Change the section name, position, visual, etc.
- Add a spawn condition or smart terrain to use, again copy another example....
This is an example in Cordon, note this section used to be a crow in vanilla
Notes are in bold...
[336]
; cse_abstract properties
section_name = zombie_weak
section in creature file
name = esc_zombie_0000
can be anything, but must be unique in all.spawn
position = -19.6100006103516,2.47000002861023,58.9099998474121
I used debug option in ZRP to collect locations
direction = 0,0,0
I usually use 0s but you can get direction using ZRP
; cse_alife_object properties
game_vertex_id = 88
ZRP debug
distance = 5
A guess, not sure what it does
level_vertex_id = 257582
ZRP debug
object_flags = 0xffffffbf
Again a guess, but I copied the value for another mutant
custom_data = <<END
[logic]
cfg = scripts\zombie_rise.ltx
Optional logic
[smart_terrains]
none = true
END
; cse_visual properties
visual_name = monsters\zombi\zombi_trup_1
The mesh
; cse_alife_creature_abstract properties
g_team = 0
g_squad = 0
g_group = 0
health = 1
dynamic_out_restrictions =
dynamic_in_restrictions =
upd:health = 1
upd:timestamp = 0
upd:creature_flags = 0
upd:position = -19.6100006103516,2.47000002861023,58.9099998474121
Copy values from earlier
upd:o_model = 0
upd:o_torso = 0.000566895643714815,-0.0149095123633742,0
upd:g_team = 0
upd:g_squad = 0
upd:g_group = 0
; cse_alife_monster_abstract properties
upd:next_game_vertex_id = 65535
upd:prev_game_vertex_id = 65535
upd:distance_from_point = 0
upd:distance_to_point = 0
; cse_ph_skeleton properties
; cse_alife_monster_base properties
; se_monster properties
Everything else I just left as is, works a charm.
As for respawns, I have copied a spawn section, and again pasted it over something I don't need like a box or something. Everything else is pretty similar, just change the name, location, spawn sections, etc.