Skip to main content

SendToSafetyLocoAction

A class in Root.Township, the global namespace.

Locomotion modifier action asset that moves the local player back to their last safe position and plays a sound, for example on falling into water.

Constructors​

MemberWhat it is
SendToSafetyLocoAction()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private SoundEffect safetySoundOld sound setting, migrated to sound. Default WaterFell.
private SoundEffectSet soundSound set played when sent to safety.

Methods​

MemberWhat it is
override void Begin(SmoothLocomotionPlayerController player)Moves the local, living player to safety and, off headless, plays the safety sound at their feet.
override void Finish(SmoothLocomotionPlayerController player)Does nothing.