preselect weapons
authorsheepluva
Sun, 24 Apr 2016 16:34:01 +0200
changeset 11689 c0ad9cf7db65
parent 11688 79bf4d02626c
child 11691 bf7899e6359a
preselect weapons
share/hedgewars/Data/Missions/Training/User_Mission_-_RCPlane_Challenge.lua
share/hedgewars/Data/Missions/Training/User_Mission_-_Rope_Knock_Challenge.lua
--- a/share/hedgewars/Data/Missions/Training/User_Mission_-_RCPlane_Challenge.lua	Sun Apr 24 16:12:19 2016 +0200
+++ b/share/hedgewars/Data/Missions/Training/User_Mission_-_RCPlane_Challenge.lua	Sun Apr 24 16:34:01 2016 +0200
@@ -487,4 +487,8 @@
 
 function onAmmoStoreInit()
 	SetAmmo(amRCPlane, 9, 0, 0, 0)
-end
\ No newline at end of file
+end
+
+function onNewTurn()
+ 	SetWeapon(amRCPlane)
+end
--- a/share/hedgewars/Data/Missions/Training/User_Mission_-_Rope_Knock_Challenge.lua	Sun Apr 24 16:12:19 2016 +0200
+++ b/share/hedgewars/Data/Missions/Training/User_Mission_-_Rope_Knock_Challenge.lua	Sun Apr 24 16:34:01 2016 +0200
@@ -267,3 +267,7 @@
 function onAmmoStoreInit()
 	SetAmmo(amRope, 9, 0, 0, 0)
 end
+
+function onNewTurn()
+ 	SetWeapon(amRope)
+end