If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time
There's a few things you would need to do to make that happen, would be good to have some basic knowledge of setting up a simple script. because i'm sure i'll forget one or two 'basic' steps..
1. First of all, obv place the model in your map as a script_model and give it a targetname. I'm gonna use
in this example.
2. A model that plays an animation needs an animtree. Pretty easy to make one, just create the folder:
in your mods\mapname\ folder. In there make a new tekst-file and name it anything, but give it the extension .atr. I'm gonna use:
Now open that file, and just paste the name of the xanim in it (and nothing else), and save it.
3.
You need to add the xanim, and animtree to your MOD.csv. Like this:
4. Now the script that plays the anim, make a new .gsc in your mods\mapname\maps\ folder. Name it whatever you like. Open it, and paste this in it: Also replace the "NAME_OF_THE_ANIM_FILE" with the actual name of the anim you using
5.
Now all thats left is to call this script from your mapname.gsc, under the line
add this line:
6. Compile, and dont forget to click the new file's in your MOD-builder
I assumed you have an animation you want to play over and over, so this script runs in a loop. There's prob other ( and better ) ways to play an animation in a loop. There's quite a few functions to use for anims. However this works too
Last Edit: October 06, 2014, 10:38:26 am by BluntStuffy