Difference between revisions of "Unit file"

From Serious Sam's Bogus Detour
Jump to: navigation, search
(Created page with ".unit Category:File type")
 
Line 1: Line 1:
 
.unit
 
.unit
 +
 +
==File format==
 +
slot
 +
 +
layer
 +
 +
netsync
 +
 +
save
 +
 +
===Behavior===
 +
class [[Script file]]
 +
 +
data [[SValue file]]
 +
 +
===Scenes===
 +
Scene sets...
 +
 +
====Sprite====
 +
 +
====Shadow====
 +
 +
====Collision====
 +
 +
====Effect====
 +
Includes an [[Effect file|Effect]] in to the scene.
 +
    <effect src="effects/weapons/projectile_laser.effect" />
 +
 +
====Scene====
 +
Includes another scene from the same unit in to the current scene.
 +
    <scene src="shared" />
 +
 +
====Text====
 +
 +
====Light====
 +
 +
====Locator====
 +
Defines a position that can be used in the scripts. Usually used for offsets for effects and projectile shooting.
 +
    <locator name="shoot-pos" pos="10 10" />
 +
 +
====Range====
 +
Only used to visually display ranges using the console variable "r_draw_ranges", useful in the editor for being able to see how far a unit might reach or something similar.
 +
    <range radius="16" />
 +
 +
====Data====
 +
Arbitrary data using the [[SValue file|SValue]] format that can be used in scripts.
 +
    <data name="health">
 +
        <int>250</int>
 +
    </data>
 +
 +
 +
  
 
[[Category:File type]]
 
[[Category:File type]]

Revision as of 18:14, 17 April 2017

.unit

File format

slot

layer

netsync

save

Behavior

class Script file

data SValue file

Scenes

Scene sets...

Sprite

Shadow

Collision

Effect

Includes an Effect in to the scene.

   <effect src="effects/weapons/projectile_laser.effect" />

Scene

Includes another scene from the same unit in to the current scene.

   <scene src="shared" />

Text

Light

Locator

Defines a position that can be used in the scripts. Usually used for offsets for effects and projectile shooting.

   <locator name="shoot-pos" pos="10 10" />

Range

Only used to visually display ranges using the console variable "r_draw_ranges", useful in the editor for being able to see how far a unit might reach or something similar.

   <range radius="16" />

Data

Arbitrary data using the SValue format that can be used in scripts.

   
       <int>250</int>