<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Deguix</id>
		<title>Soldat Community Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Deguix"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php/Special:Contributions/Deguix"/>
		<updated>2026-05-27T20:18:55Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=TActivePlayer.ForceWeapon&amp;diff=1601</id>
		<title>TActivePlayer.ForceWeapon</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TActivePlayer.ForceWeapon&amp;diff=1601"/>
				<updated>2015-06-09T04:58:07Z</updated>
		
		<summary type="html">&lt;p&gt;Deguix: NewSecondary is now defined correctly.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; '''''procedure ForceWeapon(Primary, Secondary: [[TWeapon]])'''''&lt;br /&gt;
  Primary: primary weapon&lt;br /&gt;
  Secondary: secondary weapon&lt;br /&gt;
==Description==&lt;br /&gt;
Forces two weapons to a player.&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
begin&lt;br /&gt;
  // Forces 2nd Player's weapons on 1st&lt;br /&gt;
  Players[1].ForceWeapon(Players[2].Primary, Players[2].Secondary)&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
  NewPrimary, NewSecondary: TNewWeapon;&lt;br /&gt;
begin&lt;br /&gt;
  NewPrimary := TNewWeapon.Create();&lt;br /&gt;
  NewSecondary := TNewWeapon.Create();&lt;br /&gt;
  try&lt;br /&gt;
    NewPrimary.WType := 5; //Spas&lt;br /&gt;
    NewPrimary.Ammo := 7 // Full one&lt;br /&gt;
    NewSecondary.WType := 255; // Hands&lt;br /&gt;
    NewSecondary.Ammo := 0 // To reload - for hands it doesn't matter.&lt;br /&gt;
    Player[1].ForceWeapon(TWeapon(NewPrimary), TWeapon(NewSecondary));&lt;br /&gt;
  finally&lt;br /&gt;
    NewPrimary.Free();&lt;br /&gt;
    NewSecondary.Free();&lt;br /&gt;
  end;&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:TActivePlayer]]&lt;/div&gt;</summary>
		<author><name>Deguix</name></author>	</entry>

	</feed>