share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua
branchphysfslayer
changeset 8043 da083f8d95e6
parent 5352 7f57d0c7816a
child 10036 3be36d2fdca6
--- a/share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua	Sat Nov 17 00:15:30 2012 +0400
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua	Sat Nov 17 00:41:30 2012 +0400
@@ -1,10 +1,10 @@
 -- Random Weapons, example for gameplay scripts
 
 -- Load the library for localisation ("loc" function)
-loadfile(GetDataPath() .. "Scripts/Locale.lua")()
+HedgewarsScriptLoad("/Scripts/Locale.lua")
 
 -- Load the gear tracker
-loadfile(GetDataPath() .. "Scripts/Tracker.lua")()
+HedgewarsScriptLoad("/Scripts/Tracker.lua")
 
 -- List of available weapons
 local weapons = { amGrenade, amClusterBomb, amBazooka, amBee, amShotgun,