Skip to content

Python factory to create havok behavior files for Skyrim

License

Notifications You must be signed in to change notification settings

TackYs/pyBehaviorBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyBehaviorBuilder

Python factory to create havok behavior .xml files for skyrim

Example script:

With havok animation:

from BehaviorBuilder import BehaviorFile
example_behavior = BehaviorFile()
example_behavior.add_state(name="retract", animation_path="animations\\retract.hkx", looping=True)
example_behavior.add_state(name="extend", animation_path="animations\\extend.hkx")
example_behavior.connect_states(state1="retract",state2="extend",event="PlayExtend")
example_behavior.connect_states(state1="extend",state2="retract",event="PlayRetract")
example_behavior.add_wildcard(stateStr="retract", event="gotoRetract")
example_behavior.add_wildcard(stateStr="extend", event="gotoExtend")
example_behavior.export("exampleBehavior.xml")

if instead using gamebryo animation:

from BehaviorBuilder import BehaviorFile
example_behavior = BehaviorFile()
example_behavior.add_state(name="retract", gamebryoanim=True)
example_behavior.add_state(name="extend", gamebryoanim=True)
example_behavior.connect_states(state1="retract",state2="extend",event="Extend")
example_behavior.connect_states(state1="extend",state2="retract",event="Retract")
example_behavior.add_wildcard(stateStr="retract", event="gotoRetract")
example_behavior.add_wildcard(stateStr="extend", event="gotoExtend")
example_behavior.export("exampleBehavior.xml")

You CAN mix and match havok with gamebryo animation. In fact, it might be necessary since gamebryoanimation can do scaling of bones, whereas havok cannot.

About

Python factory to create havok behavior files for Skyrim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages