Scripts / Character animation script

Author
Message
Auger
13
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Out There
Posted: 25th May 2014 10:41 Edited at: 25th May 2014 10:52
I wrote a very basic script to control character animation. For the moment it won't do much other then play animations since we wont't get new Lua movement commands till the next update.



Basically it checks player distance and runs an animation based on how far away the player is. I've set it to run an idle animation between (1000 - 800), a running animation from (800 - 200) and finally some random melee animations when less then 200.



In the video I used 3 zombies from Pack 57. The reason the zombies are a few feet off the ground is cause for some reason they fell beneath the terrain occasionally when place on flat ground.











script in reply



Auger
Auger
13
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Out There
Posted: 25th May 2014 10:41 Edited at: 25th May 2014 11:01
LUA Script









I used Mender and Animer to convert the models.

Fpe file for one of the zombies.



Login to post a reply

Server time is: 2024-12-22 01:33:29
Your offset time is: 2024-12-22 01:33:29