Gamemodel script
From Blood Wiki
(Difference between revisions)
Line 1: | Line 1: | ||
− | Gamemodel script is [[ | + | = Introduction = |
+ | |||
+ | Gamemodel script is [[NSX | .NSX files]] to configure [[misc_gamemodel]] and [[func_gamemodel]].\ | ||
+ | |||
+ | Gamemodel script is part of entity configuration script, and, currently the only one member of it. | ||
+ | |||
+ | 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 |
Revision as of 16:04, 3 July 2012
Introduction
Gamemodel script is .NSX files to configure misc_gamemodel and func_gamemodel.\
Gamemodel script is part of entity configuration script, and, currently the only one member of it.
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