User Tools

Site Tools


hpl3:game:scripting:user_modules:player_tool

Link to this comparison view

Both sides previous revision Previous revision
hpl3:game:scripting:user_modules:player_tool [2015/09/16 15:30]
ian.thomas
hpl3:game:scripting:user_modules:player_tool [2015/09/16 15:37] (current)
ian.thomas
Line 3: Line 3:
  
 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. 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.
 +
 +The Player Tool module uses ''​Prop_Tool''​ objects.
 +
 +===== Prop_Tool Level Editor Properties ====
 +==== PickupCallback ====
 +
 +Called when the tool is picked up from in level by the player.
 +==== UseCallback ====
 +
 +Called when the tool is used on another object
 +==== CanBeUsedCallback ====
 +
 +Called to check if the tool can currently be used
 +==== DropCallback ====
 +
 +Called when the tools is dropped (Use returns false)
 +==== AutoHideAfterPickup ====
 +
 +Hide when the tool is picked up.
 +==== HighlightActive ====
 +
 +Is the tool highlighted in level when you're nearby?
 +
 +===== Prop_Tool Model Editor Properties ====
 +==== HudObjectEntity ====
 +
 +Which entity to use when held in the player'​s hands, equipped?
 +==== InventoryTextEntry ====
 +
 +Text to show on the inventory screen
 +==== InventoryIcon ====
 +
 +Icon to show on the inventory screen
 +==== HandAnimationSuffix ====
 +
 +Suffix to add to player hand animation names, for custom anims for this tool.
 +==== IsHeavy ====
 +
 +Will player be unable to jump / use terminals etc. when carrying this object?
 +==== CustomUseIcon ====
 +
 +Icon to show when the tool is held over another object.
  
 ===== Important Functions ===== ===== Important Functions =====
hpl3/game/scripting/user_modules/player_tool.txt ยท Last modified: 2015/09/16 15:37 by ian.thomas