hello
ive make an enemy wich uses a machine gun using spawngun
ive added a bbox to the machinegun and a life of 1000
but every time the player hits the machinegun, the machinegun disapears...
in the gijoe mod the cobraboat spawns turrents using spawngun
and the turrents have a bbox, health and death animation...
but in my mod its not working the spawngun entity disapears when it
takes one hit
Is it possible to make the spawngun entity take damadge like an enemie?
this are the txt files
enemie
spwangun machinegun
ive make an enemy wich uses a machine gun using spawngun
ive added a bbox to the machinegun and a life of 1000
but every time the player hits the machinegun, the machinegun disapears...
in the gijoe mod the cobraboat spawns turrents using spawngun
and the turrents have a bbox, health and death animation...
but in my mod its not working the spawngun entity disapears when it
takes one hit
Is it possible to make the spawngun entity take damadge like an enemie?
this are the txt files
enemie
name plane1
type enemy
subtype chase
speedf 1.1
nomove 0 1
health 100
mp 100
jumpheight 0
nopain 1
nolife 1
falldie 1
nodieblink 1
makeinv 3
lifespan 150
gfxshadow 1
nodrop 1
antigrab 10
subject_to_platform 0
subject_to_wall 0
offscreenkill 5000
hostile player
candamage player npc
animationscript data/scripts/escript.c
anim spawn
loop 0
delay 6
offset 60 195
bbox 0 0 0 0
frame data/chars/misc/traps/plane1/empty.gif
@cmd spawnGun "planegun" 96 41 1 1
frame data/chars/misc/traps/plane1/empty.gif
spwangun machinegun
name planegun
type enemy
nomove 1 0
health 3210
death 1 #-also tried falldie 1
nodieblink 3
shadow 0
nolife 1
nopain 1
hostile player
subject_to_hole 0
subject_to_platform 0
subject_to_gravity 0
subject_to_wall 0
hostile player npc
candamage player npc
animationscript data/scripts/escript.c