Table of Contents

Class AbilityMoveTransformAction

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Action that moves an ability object along a straight line from its spawn pose, at the ability's speed, evaluated in closed form from the object's integer tick count.

[Serializable]
public class AbilityMoveTransformAction : BaseAction, IAction
Inheritance
AbilityMoveTransformAction
Implements
Inherited Members

Fields

MoveDirection

The direction the transform should move. Vector3(0,0,1) is forward, Vector3(1,0,0) is right, Vector3(0,1,0) is up.

[Tooltip("The direction the transform should move. Vector3(0,0,1) is forward, Vector3(1,0,0) is right, Vector3(0,1,0) is up.")]
public Vector3 MoveDirection

Field Value

Vector3

Methods

Execute(ICharacter, EventData)

Executes the move transform action, moving the target transform in the specified direction based on ability speed.

public override void Execute(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter

The character initiating the action.

eventData EventData

The event data containing tick and target information.