mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge pull request #244 from FlightControl-Master/Bugfix-132nd
Fix to Missile Trainer
This commit is contained in:
commit
bc863c157e
@ -501,9 +501,8 @@ function MISSILETRAINER:_EventShot( Event )
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
-- TODO: some weapons don't know the target unit... Need to develop a workaround for this.
|
-- TODO: some weapons don't know the target unit... Need to develop a workaround for this.
|
||||||
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
|
if ( TrainerWeapon:getTypeName() == "9M311" ) then
|
||||||
if ( TrainerWeapon:getTypeName() == "9M311" ) then
|
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 1 )
|
||||||
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
|
|
||||||
else
|
else
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -22292,9 +22292,8 @@ function MISSILETRAINER:_EventShot( Event )
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
-- TODO: some weapons don't know the target unit... Need to develop a workaround for this.
|
-- TODO: some weapons don't know the target unit... Need to develop a workaround for this.
|
||||||
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
|
if ( TrainerWeapon:getTypeName() == "9M311" ) then
|
||||||
if ( TrainerWeapon:getTypeName() == "9M311" ) then
|
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 1 )
|
||||||
SCHEDULER:New( TrainerWeapon, TrainerWeapon.destroy, {}, 2 )
|
|
||||||
else
|
else
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user