Corgi Engine  v9.2
MoreMountains.Feedbacks.MMF_Feedbacks Class Reference

This feedback allows you to trigger a target MMFeedbacks, or any MMFeedbacks 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 { Modes.PlayFeedbacksInArea, Modes.PlayTargetFeedbacks }
 

Public Attributes

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

Static Public Attributes

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

Protected Member Functions

override void CustomInitialization (MMF_Player owner)
 On init we turn the light off if needed More...
 
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 More...
 

Properties

override float FeedbackDuration [get]
 sets the inspector color for this feedback More...
 

Additional Inherited Members

Detailed Description

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

Member Enumeration Documentation

◆ Modes

Enumerator
PlayFeedbacksInArea 
PlayTargetFeedbacks 

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 
)
protectedvirtual

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

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

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

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_Feedbacks.HasChannel => true

◆ 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


The documentation for this class was generated from the following file: