| Blockland Forums > Modification Help |
| Animation Playback in-game??? |
| (1/2) > >> |
| takato14:
Alright, Ive animated a model in blender, and exported to DTS, but I dont know which Function Im supposed to use to make my animations actually playback in-game. Ive tried %obj.playThread, and it DOES NOT work. This code below does nothing in-game: --- Code: ---function UberrifleImage::onFire(%this,%obj,%slot) { if(%obj.getDamagePercent() < 1.0) %obj.playThread(2, Action); Parent::onFire(%this,%obj,%slot); } function UberrifleImage::onFire(%this,%obj,%slot) { if(%obj.getDamagePercent() < 1.0) %obj.playThread(2, Actrion); Parent::onFire(%this,%obj,%slot); } function UberrifleImage::onFire(%this,%obj,%slot) { if(%obj.getDamagePercent() < 1.0) %obj.playThread(2, Ation); Parent::onFire(%this,%obj,%slot); } --- End code --- I am not sure why its not working, but it isnt. If Im using the wrong code, please tell me which one I should be using and give an example of the proper syntax. Thanks. NOTE: There are no spelling mistakes in the names of the threads; I did that on purpose simply because the names blender gave the animations by default caused a syntax error (EG: Action.001) |
| heedicalking:
I don't think you can call animations for a weapon outside of the image states. |
| takato14:
--- Quote from: heedicalking on June 20, 2010, 12:23:06 PM ---I don't think you can call animations for a weapon outside of the image states. --- End quote --- uh... Meaning its all in the weapon image? How do I call those..... State sequence? And if so, can I call Multiple Sequences in the same state (like stateSequence[0, 1 2 3 etc] or otherwise? |
| takato14:
Nevermind, I got it working. Thanks Flesk :3 |
| spartan101:
--- Quote from: takato14 on June 20, 2010, 04:26:28 PM ---Nevermind, I got it working. Thanks Flesk :3 --- End quote --- Hey send me the model and ill try animation's(Hint-upload to mediafire) |
| Navigation |
| Message Index |
| Next page |