Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMF_Feedbacks Class Reference

This feedback allows you to trigger a target MMF_Player, or any MMF_Player on the specified Channel within a certain range. You'll need an MMFeedbacksShaker on them. More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_Feedbacks:
MoreMountains.Feedbacks.MMF_Feedback

Public Types

enum  Modes { PlayFeedbacksInArea , PlayTargetFeedbacks , TriggerMMF_PlayerEvent }

Public Attributes

Modes Mode = Modes.PlayFeedbacksInArea
 the selected mode for this feedback
MMFeedbacks TargetFeedbacks
 a specific MMFeedbacks / MMF_Player to play
bool OnlyTriggerPlayersInRange = false
 whether or not to use a range
float EventRange = 100f
 the range of the event, in units
Transform EventOriginTransform
 the transform to use to broadcast the event as origin point

Static Public Attributes

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once

Protected Member Functions

override void CustomInitialization (MMF_Player owner)
 On init we turn the light off if needed.
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we trigger our target feedback or trigger a feedback shake event to shake feedbacks in the area.

Properties

override float FeedbackDuration [get]
 sets the inspector color for this feedback
override bool HasChannel [get]

Additional Inherited Members

Detailed Description

This feedback allows you to trigger a target MMF_Player, or any MMF_Player on the specified Channel within a certain range. You'll need an MMFeedbacksShaker on them.

Member Enumeration Documentation

◆ Modes

Enumerator
PlayFeedbacksInArea 
PlayTargetFeedbacks 
TriggerMMF_PlayerEvent 

Member Function Documentation

◆ CustomInitialization()

override void MoreMountains.Feedbacks.MMF_Feedbacks.CustomInitialization ( MMF_Player owner)
protectedvirtual

On init we turn the light off if needed.

Parameters
owner

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_Feedbacks.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1::0f )
protected

On Play we trigger our target feedback or trigger a feedback shake event to shake feedbacks in the area.

Parameters
position
feedbacksIntensity

Member Data Documentation

◆ EventOriginTransform

Transform MoreMountains.Feedbacks.MMF_Feedbacks.EventOriginTransform

the transform to use to broadcast the event as origin point

◆ EventRange

float MoreMountains.Feedbacks.MMF_Feedbacks.EventRange = 100f

the range of the event, in units

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_Feedbacks.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ Mode

Modes MoreMountains.Feedbacks.MMF_Feedbacks.Mode = Modes.PlayFeedbacksInArea

the selected mode for this feedback

◆ OnlyTriggerPlayersInRange

bool MoreMountains.Feedbacks.MMF_Feedbacks.OnlyTriggerPlayersInRange = false

whether or not to use a range

◆ TargetFeedbacks

MMFeedbacks MoreMountains.Feedbacks.MMF_Feedbacks.TargetFeedbacks

a specific MMFeedbacks / MMF_Player to play

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_Feedbacks.FeedbackDuration
get

sets the inspector color for this feedback

the duration of this feedback is the duration of our target feedback

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_Feedbacks.HasChannel
get

The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/feel/Assets/Feel/MMFeedbacks/MMFeedbacks/Feedbacks/MMF_Feedbacks.cs