| Both sides previous revision Previous revision | |||
|
hpl3:community:hpl3_reference_guide [2016/10/06 19:07] abion47 |
hpl3:community:hpl3_reference_guide [2016/10/06 19:17] (current) abion47 [Key Pick-Up] |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| [Image Placeholder - Player Picks Up Chip] | [Image Placeholder - Player Picks Up Chip] | ||
| - | |||
| - | You can also manually add a tool to the player's inventory through the script. | ||
| Of course, there are times when you want to know if the player has picked up a tool. In this case, you can add a function to the tool's "OnPlayerPickup" callback. This callback gets fired when the player (appropriately enough) picks up the tool. | Of course, there are times when you want to know if the player has picked up a tool. In this case, you can add a function to the tool's "OnPlayerPickup" callback. This callback gets fired when the player (appropriately enough) picks up the tool. | ||