Physics Gun Accessibility

An add-on script to the physicsGunScript for the physics gun. Assign “interact” or another button to collect or drop items.

Scripts

  • physicsGunAccessibilityScript
    • designed for the interact button
    • collects or drops the item on interact button press (or other button)
    • if there is something to interact with, it will interact vice drop / collect

Physics Gun Accessibility Script

  • add to weapon with physicsGunScript already on it
  • configure the additional button
  • modify canRelax on player for alt and secondary button
Physics Gun Property Setting
physicsGunAccessibilityScript Alt Button interact
physicsGunSccessibilityScript Can Relex true

ref:
How to make accessible games in Crayta