share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 13630 fe7d2bbf5f3f
parent 13583 141cdfe0f3ca
child 13664 85506d95977d
equal deleted inserted replaced
13629:c9a49d06f1a2 13630:fe7d2bbf5f3f
    53 	SetEffect(hog, heResurrectable, 1)
    53 	SetEffect(hog, heResurrectable, 1)
    54 
    54 
    55 	SendHealthStatsOff()
    55 	SendHealthStatsOff()
    56 end
    56 end
    57 
    57 
    58 function onGearResurrect(gear)
    58 function onGearResurrect(gear, vGear)
    59 	if gear == hog then
    59 	if gear == hog then
    60 		flawless = false
    60 		flawless = false
    61 		SetGearPosition(hog, 1485, 2001)
    61 		SetGearPosition(hog, 1485, 2001)
       
    62 		if vGear then
       
    63 			SetVisualGearValues(vGear, GetX(hog), GetY(hog))
       
    64 		end
    62 		AddCaption(loc("Your hedgehog has been revived!"))
    65 		AddCaption(loc("Your hedgehog has been revived!"))
    63 	end
    66 	end
    64 end
    67 end
    65 
    68 
    66 function placeGirders()
    69 function placeGirders()