<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=Hpl3%3AGame%3Ascripting%3Auser_modules%3Aplayer_tool</id>
	<title>Hpl3:Game:scripting:user modules:player tool - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=Hpl3%3AGame%3Ascripting%3Auser_modules%3Aplayer_tool"/>
	<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=Hpl3:Game:scripting:user_modules:player_tool&amp;action=history"/>
	<updated>2026-05-15T09:40:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.frictionalgames.com/page?title=Hpl3:Game:scripting:user_modules:player_tool&amp;diff=575&amp;oldid=prev</id>
		<title>Maintenance script: Upload from wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=Hpl3:Game:scripting:user_modules:player_tool&amp;diff=575&amp;oldid=prev"/>
		<updated>2020-07-09T13:43:55Z</updated>

		<summary type="html">&lt;p&gt;Upload from wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Player Tool =&lt;br /&gt;
'''Helper function prefix:''' Player_&lt;br /&gt;
&lt;br /&gt;
This module handles the player's use of ''Prop_Tool'' objects that they pick up, including maintaining an inventory list, deciding if a tool is equipped (shown in the player's hands) and whether tools can be used on particular entities or areas. In SOMA, this covers things like the Omnitool or scan chips.&lt;br /&gt;
&lt;br /&gt;
The Player Tool module uses ''Prop_Tool'' objects.&lt;br /&gt;
&lt;br /&gt;
==== Prop_Tool Level Editor Properties ===&lt;br /&gt;
=== PickupCallback ===&lt;br /&gt;
&lt;br /&gt;
Called when the tool is picked up from in level by the player.&lt;br /&gt;
=== UseCallback ===&lt;br /&gt;
&lt;br /&gt;
Called when the tool is used on another object&lt;br /&gt;
=== CanBeUsedCallback ===&lt;br /&gt;
&lt;br /&gt;
Called to check if the tool can currently be used&lt;br /&gt;
=== DropCallback ===&lt;br /&gt;
&lt;br /&gt;
Called when the tools is dropped (Use returns false)&lt;br /&gt;
=== AutoHideAfterPickup ===&lt;br /&gt;
&lt;br /&gt;
Hide when the tool is picked up.&lt;br /&gt;
=== HighlightActive ===&lt;br /&gt;
&lt;br /&gt;
Is the tool highlighted in level when you're nearby?&lt;br /&gt;
&lt;br /&gt;
==== Prop_Tool Model Editor Properties ===&lt;br /&gt;
=== HudObjectEntity ===&lt;br /&gt;
&lt;br /&gt;
Which entity to use when held in the player's hands, equipped?&lt;br /&gt;
=== InventoryTextEntry ===&lt;br /&gt;
&lt;br /&gt;
Text to show on the inventory screen&lt;br /&gt;
=== InventoryIcon ===&lt;br /&gt;
&lt;br /&gt;
Icon to show on the inventory screen&lt;br /&gt;
=== HandAnimationSuffix ===&lt;br /&gt;
&lt;br /&gt;
Suffix to add to player hand animation names, for custom anims for this tool.&lt;br /&gt;
=== IsHeavy ===&lt;br /&gt;
&lt;br /&gt;
Will player be unable to jump / use terminals etc. when carrying this object?&lt;br /&gt;
=== CustomUseIcon ===&lt;br /&gt;
&lt;br /&gt;
Icon to show when the tool is held over another object.&lt;br /&gt;
&lt;br /&gt;
== Important Functions ==&lt;br /&gt;
&lt;br /&gt;
=== Player_PlayCustomToolAnimation ===&lt;br /&gt;
Plays an animation on the currently displayed tool's entity.&lt;br /&gt;
=== Player_ToolIsInInventory ===&lt;br /&gt;
Checks to see if the player has picked up a tool with this name.&lt;br /&gt;
=== Player_EquipTool ===&lt;br /&gt;
The player holds up the tool in his hand if it's in the inventory.&lt;br /&gt;
=== Player_UnequipTool ===&lt;br /&gt;
The player puts away the tool in his hand.&lt;br /&gt;
=== Player_RemoveTool ===&lt;br /&gt;
The tool is removed from the player's inventory&lt;br /&gt;
=== Player_RemoveAllTools ===&lt;br /&gt;
All tools are removed from the player's inventory&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
		
	</entry>
</feed>