Difference between revisions of "TGame.LoadWeap"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''function LoadWeap(WeaponMod: string): Boolean''''' WeaponMod: path to the weapon mod file Result: if ot worked or not ==Description== Changes the weapon mod<br> ==...")
 
m
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
  '''''function LoadWeap(WeaponMod: string): Boolean'''''
 
  '''''function LoadWeap(WeaponMod: string): Boolean'''''
 
   WeaponMod: path to the weapon mod file
 
   WeaponMod: path to the weapon mod file
   Result: if ot worked or not
+
   Result: if it worked or not
  
 
==Description==
 
==Description==
Changes the weapon mod<br>
+
Changes the weapon mod to target one. It is possible to take a non-default Weapon.ini!<br>
  
 
==Example==
 
==Example==
 
<syntaxhighlight lang="pascal">
 
<syntaxhighlight lang="pascal">
Game.LoadWep('sctfl.txt');
+
Game.LoadWeap('sctfl'); // will load sctfl.ini
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:TGame]]
 
[[Category:TGame]]

Latest revision as of 14:36, 4 September 2016

function LoadWeap(WeaponMod: string): Boolean
 WeaponMod: path to the weapon mod file
 Result: if it worked or not

Description

Changes the weapon mod to target one. It is possible to take a non-default Weapon.ini!

Example

Game.LoadWeap('sctfl'); // will load sctfl.ini