User Tools

Site Tools


attach_points

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
attach_points [2021/04/21 20:12] justinattach_points [2022/05/09 15:06] justin
Line 43: Line 43:
 <code bauxite> <code bauxite>
 detach_object(player, "right_hand"); detach_object(player, "right_hand");
 +</code>
 +
 +You can reference the [[object]] that's currently attached to an attach point using the "attachment" property with the desired attach point ID. In the example below, the "glow" animation will be played for the [[object]] attached to the player's "right_hand" attach point.
 +<code bauxite>
 +play_animation(player.attachment["right_hand"], "glow");
 </code> </code>
  
attach_points.txt · Last modified: 2022/05/09 15:06 by justin