I've mostly got everything covered but I do need a lot of help with scripting because this is totally new for me. I've read many tutorials, the docs and the e-book but still it seems really difficult for me so I've started this thread.
Right, here are my first problems. I've made a little box map, a character with a new skeleton and one very n00bish animation. The character is compiled and everything seems to work fine.
I've also got the model working in the editor and thus as a static mesh in the game. I've written my first script, well stolen from AndyCR's tutorial, and renamed the animation name. Now it should play the animation right? It does not ... It just stands there doing nothing!


Here is the script and the entry in the pawn.ini. Can anyone help me?
Code: Select all
{
Spawn[()
{
PlayAnimation("anim_idle", true, ""); // with the new animation name
RestartOrder();
}]
}
Also, I seem to have a problem with my bounding box. Look :pawn.ini wrote: [dev_human]
actorname = dev_human.act
actorrotation = 0 180 0
actorscale = 1.4
fillcolor = 255 255 255
ambientcolor = 255 255 255
subjecttogravity = true
boundingboxanimation = idle

Know how to fix this?
Thanks ahead!
Edit :
I've noticed some define their animation at the beginning at the script. I did it just like that, again no succes.
Code: Select all
{
IDLE [anim_idle] // Defined animation.
Spawn[()
{
Console(true);
PlayAnimation(IDLE, true, ""); // here also pointed to IDLE
RestartOrder();
}]
}