I'm trying to make a rocket projectile that drops a weapon when it hits something, but it doesn't seem to be working. I put the DropItem flag, and I get no script errors on launch. But when fired, the rocket acts normally and doesn't drop anything. Help?
Spoiler
Actor "Rocketball" : Rocketlauncher 9000 <---- Weapon Dropped
{
Inventory.PickupMessage "Picked up the ball!"
Weapon.AmmoGive 1
Weapon.AmmoType "RocketAmmo"
Weapon.Slotnumber 5
States
{
Fire:
MISG B 8 A_GunFlash
MISG B 12 A_FireProjectile("Rocketflying",0,1,8,8,0)
MISG B 0 A_ReFire
Goto Ready
Spawn:
ROCK A -1
Stop
}
}
Actor "Rocketflying" : Rocket 9001 <---- Rocket I was talking about
{
Dropitem "RocketBall", 255, 1
}
I'm trying to make a rocket projectile that drops a weapon when it hits something, but it doesn't seem to be working. I put the DropItem flag, and I get no script errors on launch. But when fired, the rocket acts normally and doesn't drop anything. Help?
Actor "Rocketball" : Rocketlauncher 9000 <---- Weapon Dropped
{
Inventory.PickupMessage "Picked up the ball!"
Weapon.AmmoGive 1
Weapon.AmmoType "RocketAmmo"
Weapon.Slotnumber 5
States
{
Fire:
MISG B 8 A_GunFlash
MISG B 12 A_FireProjectile("Rocketflying",0,1,8,8,0)
MISG B 0 A_ReFire
Goto Ready
Spawn:
ROCK A -1
Stop
}
}
Actor "Rocketflying" : Rocket 9001 <---- Rocket I was talking about
{
Dropitem "RocketBall", 255, 1
}
Share this post
Link to post