I didn't know where to post this, here or in the gani section. I figure that since this is mainly to help scripters, I'd post it here.
As a little project I was starting for myself, I created gani's of the current soldier baddy. It's a little complex, but that's because of the fact that baddies can have head directions seperate from their body direction.
The baddy's image uses the NPC's head image, IE #3.
The head of the baddy must be shown using a showani. I was going to use it by setting P1, but I found that you can't pass parameters, which was needed(unless there is a way).
When showing the gani, the direction of the head is passed in the parameter as 0-3, like so:
NPC Code:
showani 0,x,y,dir,baddyhead,#v(headdir);
GS2:
NPC Code:
showani(0,this.x,this.y,this.dir,"baddyhead", this.headdir);