Bat pet
9 replies



13.05.12 03:29:07 am
Hi,
I'm working on a bat pet.
It's following player all over the map (except water), and it collects worms by night. It would be succesfull, but animations doesn't work, and i don't know why. Here's the code:
I'm working on a bat pet.
It's following player all over the map (except water), and it collects worms by night. It would be succesfull, but animations doesn't work, and i don't know why. Here's the code:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
### Bat
id=197
name=Bat pet
group=animal
icon=gfx\bat.bmp
model=gfx\bat.3ds
colxr=18
colyr=14
scale=0.20
behaviour=monkey
health=5000000
speed=2
turnspeed=2
ani_move=1,30,0.10
ani_die=1,2,0.11
script=start
on:start { if (health("self")>0){ ai_mode "self","goto","unit","1"; ai_center; }
script=end
id=197
name=Bat pet
group=animal
icon=gfx\bat.bmp
model=gfx\bat.3ds
colxr=18
colyr=14
scale=0.20
behaviour=monkey
health=5000000
speed=2
turnspeed=2
ani_move=1,30,0.10
ani_die=1,2,0.11
script=start
on:start { if (health("self")>0){ ai_mode "self","goto","unit","1"; ai_center; }
script=end
Avenged Sevenfold \m/
Firstly we need yours model and did that bat havn't too much health? change bahaviour to "landskybird"

how can the die animation be in the same seconds like move ani ???
and ani die only 2 frames long ?
these makes not realy sense.
and change behaviour to a bird ,)
ps: sry for bad english
and ani die only 2 frames long ?
these makes not realy sense.
and change behaviour to a bird ,)
ps: sry for bad english
Ok, I'll try
EDIT: Die animation now work perfect, but it's still doesn't move its wings.

EDIT: Die animation now work perfect, but it's still doesn't move its wings.
edited 1×, last 13.05.12 01:54:28 pm
Avenged Sevenfold \m/
Hmm I hel you!
if you anim is starting on "1" frame and ending on "30" frame here is problem: Too long! Try to make that anim from "1" frame to "10" frame and die anim from "11" to "16"
Code:
1
2
2
ani_move=1,30,0.10
"1" is starting anim frame | "30" is ending anim frame | "0.10" is speed of anim
"1" is starting anim frame | "30" is ending anim frame | "0.10" is speed of anim
if you anim is starting on "1" frame and ending on "30" frame here is problem: Too long! Try to make that anim from "1" frame to "10" frame and die anim from "11" to "16"




