SUNRISE STUDIO

Enemies and NPCs

The Enemies and NPCs category lists every entity with a combatant component. Enemies, bosses and friendly NPCs all use that component. Studio cannot tell their side apart, so they share one category. Every other entity is in Entities.

Find an enemy

  1. Open the Assets tab of the asset browser.
  2. Choose Enemies and NPCs, or type a name such as Legionary in the search box.
  3. Pick a type in the Type list to narrow the list.

The type is the enemy’s display name. An enemy with no display name uses its object type, such as biped. One with neither is Unnamed.

What the viewer shows

The model is on the left, or on top when the panel is narrow. The Components tab lists:

  • The display name, the internal name, the object type and the package.
  • A Damage section, when the entity has a damage config. It lists each damage part and pool.
  • One section per component config. The combatant config comes first. Each section shows the component class, any model or prompt it links, and the strings the config holds. A role listed more than once gets one header with a node per config.

Press the open icon in a section to open that config as a plain asset. The Parts, Materials, Shaders, Related and Graph tabs work as they do for any entity.

Rank, look and shields

Many enemies change color with their rank or faction, and some parts show only while the game runs. The Parts tab sets both:

  • Variant picks values such as rank (type) and faction. See Pick variant values.
  • Channels sets the values materials read, such as a Hydra’s shield. Each starts at the value the game holds while the enemy is alive and idle, where Studio can work it out. A Hydra opens with its shield plates on. See Set channel values. The same rest values apply wherever the entity is placed in a map.

Assets > Export full asset to Blender… uses the same choices.

Edit

Open a project first. Type a new value and press Enter. A damage value applies when you leave its field. Each change is one undo step.

An edit changes the config, not the enemy. Every enemy that uses the same config changes too.

fieldwhat it isstate
Local definitionThe class 0x8080815F record. It gives the display name and the enemy’s action table (state machine, melee, jump, teleport). Changing it changes both.may not work in game
Damage part scale, per-type scale, pool start fractionFloats of the damage config, in the Damage section of the Components tabmay not work in game

Studio refuses a Local definition value that is not a class 0x8080815F tag.

The part value under Health? is read only. Its meaning is assumed.

Copy an enemy into a squad

Clone in Enemies and NPCs copies an installed enemy and makes one squad of a destination your project made spawn the copy.

  1. Open a project with a destination. See Create a destination from an installed one.
  2. Select the enemy and press Clone.
  3. Choose the Destination and the Squad.
  4. Fill the fields below, then press Create.
fieldwhat it takes
Squada squad the destination kept, listed by its slot name hash and spawner config tag
Starting healththe share of its health the copy starts with, above 0 up to 1
Hit pointshit points of a full health pool; blank keeps the installed value (a Dreg has 100, a Captain 350)
ModelInstalled model; Box figure, a stand-in of one box per bone; or Model file
Model filewith Model file: a glb of one mesh, one primitive, skinned to the skeleton the enemy exports with
Package IDwith a new model: the project package that takes it
Edited clipsa folder of edited controls glTF files from the enemy’s export; blank keeps every installed clip

Every member of the squad becomes the copy. The squad keeps its spawn point and its counts. The copy’s component configs belong to your project. Its clips, sounds and behaviour stay the installed ones, and so does its model unless you pick a new one. A new model is skinned to the enemy’s skeleton, so it moves with the enemy’s clips. One installed material draws it, and the enemy keeps its cloth and weapon.

Hit points sets the value of an ordinary spawn. A major, miniboss or ultra spawn keeps its installed value. The game also scales the value by a factor Studio does not set, about 1.5 to 1.9.

For a model file, export the enemy as an asset bundle, open it in Blender, and skin your mesh to that armature. See Edit an asset in Blender. Keep every joint and do not move the armature’s rest pose: Studio matches the joints by name and refuses a file whose bind pose differs. Export one mesh with one material as a glb, with positions, normals, one UV set, and up to four joint weights per vertex.

For edited clips, the enemy’s export holds one <clip tag>.controls.gltf per clip under animations. Edit the ones you want, keep their names and frame counts, and put them in one folder. Each becomes a new clip that only this copy plays. The clips have no names: open them in Blender to find the one you want, such as the idle or the death. Importing hundreds of clips takes minutes. See Edit animation controls.

Works in game: a squad spawns a copy of another enemy; a lower starting health and more hit points show on the health bar; a box figure aims, flinches, dies and leaves a drop; a model file cut from the enemy’s own export draws skinned and shadowed; and edited clips change the copy’s pose. A model file saved by Blender is unverified.

Not known

Studio does not show AI, weapons, loot or faction yet.

New in Enemies and NPCs is gray. Its tip says why: no AI, hit point or loot field is known, so copy an installed enemy instead. New and Clone in Entities place an animated entity in a destination your project made. See Place an animated entity.

Replace a skinned model makes a new entity on the Hob rig. A World Import Bundle can build creatures with their own skeleton over an installed enemy.