Gamemodel script

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
m
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
= Introduction =
+
{{unfinished}}
  
Gamemodel script is [[NSX | .NSX files]] used to configure [[misc_gamemodel]] and [[func_gamemodel]].
+
== Introduction ==
 +
 
 +
Gamemodel script is [[NSX | NSX files]] used to configure [[misc_gamemodel]] and [[func_gamemodel]].
  
 
Gamemodel script is part of entity configuration script, and currently, the only one member of it.  
 
Gamemodel script is part of entity configuration script, and currently, the only one member of it.  
Line 10: Line 12:
 
# Animations
 
# Animations
 
# States (open / closed, active, inactive etc.)
 
# States (open / closed, active, inactive etc.)
# Physics (bound box, perameters etc.)
+
# Physics (bound box, parameters etc.)
 
# Interactivity (pushing, destruction)
 
# Interactivity (pushing, destruction)
  
Line 35: Line 37:
 
  state=pressed
 
  state=pressed
  
= Usage =
+
== Usage ==
  
 
Gamemodel script can be used to set a variety of different behaviors of a gamemodel:
 
Gamemodel script can be used to set a variety of different behaviors of a gamemodel:
 
* animating gamemodel (cre
 
* addin new [[Trigger event | trigger commands]] to a gamemodel
 
* changing a skin
 
* make pushable gamemodel
 
* make destructibles
 
* set up physicsal properies
 

Latest revision as of 17:01, 27 July 2012

This page is not finished
You can help by editing and extending it.

[edit] Introduction

Gamemodel script is NSX files used to configure misc_gamemodel and func_gamemodel.

Gamemodel script is part of entity configuration script, and currently, the only one member of it.

Gamemodel script is used to define various aspects of a game model:

  1. Trigger events
  2. Animations
  3. States (open / closed, active, inactive etc.)
  4. Physics (bound box, parameters etc.)
  5. Interactivity (pushing, destruction)

Example of gamemodel script:

[entity]
configurations=gamemodel
[gamemodel]
scripts=unpress,press,pressed,ready
states=ready->press,pressed->unpress
state=ready
call=nextstate
[ready]
frame=0
[unpress]
sound=legacy/switch.wav
animate=5 0 20
state=ready
[pressed]
frame=5
[press]
sound=legacy/switch.wav
animate=0 5 20
state=pressed

[edit] Usage

Gamemodel script can be used to set a variety of different behaviors of a gamemodel:

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox