MdotsCustomPlaymakerActions
MdotsCustomPlaymakerActions copied to clipboard
Custom Playmaker actions I've made/modded for my own projects- scroll down for ReadMe
MdotsCustomPlaymakerActions
This is a dump of my custom Playmaker actions I've made or modded for my own projects- I hope they are useful to some other Playmakers out there ^_^
If you want to tip me for helping you make your own Fsm spaghetti paypal here bitcoin == 17PUcU7tdhhghvwwximtigGGqvp6pcfUzk
I can't guarantee any support on these but if you have questions please post them in the Playmaker forum as I'm always hanging out there Playmaker forums
If you want all the actions just download the "mdsPMActions.unitypackage"
Add Knockback Force

This applies a knockback force in the direction of the hit- Use the hitpoint from a cast
Animated UV Map

Animated the Offset on a material
Are game objects facing each other

Determines whether two game objects are facing each other
Array Clear Delete

Deletes all items from an array leaving it empty
Array Remove

Removes an object from an array
Box Cast

Casts a physics box and retrieves hit info
Button AutoScroll for GamePad

Use with a vertical list and the buttons will scroll with gamepad input
Check Sphere

Casts a checksphere
Debug Quaternion

Enable Agent Action

Enables/Disables a navmesh agent component
Enable Event System

Enables/Disables a ugui event system
Enable Mesh Renderer

Enables/Disables a mesh renderer
Flip Fsm Bool

Flips a bool on another Fsm
Float switch 2

Switches based on "equals"
Front back side to side

Input a game object or V3 and it will output a V3 at a given direction from the target -useful for getting flanking positions for ai agents
Fsm Bool Test

Tests a bool on another fsm
Game Object Speed no Y

Gets game object speed ignoring the Y velocity
Get Box Collider Size

Get Capsule Collider Height

Get Collider Type

Get forward direction

Gets the forward +Z direction of a game object
Get Light Intensity

Get Light Range

Get Sphere Collider Radius

Get Surface Forward

Input vars from a cast hit and use the surface fwd to align things to surface
Get Y Distance

Int Remap

Same as float remap except with an int var
Inverse Transform Vector

Is Navmesh Component enabled

Is Target In Front or Behind

Knockback Action

Give it a hitpoint from a cast and an amount and it will knockback a NavmeshAgent, RigidBody or Character Controller
Knockback Position Finder

Give it cast hit info and it will give you a knockback position
OverlapSphere To Array

Casts an overlapSphere and stores hit game objects in an array
Physics LineCast 2

Play Single Audio Random Pitch

Plays a single audio file while randomizing pitch each time
Play Random Audio From Array

Plays a random audio file while from an array while randomizing pitch each time (make sure you use an "object" var set to UnityEngine/AudioClip for the variable)
Raycast Ignore Triggers

Same as normal raycast but has option to ignore colliders set to trigger
Raycast 2 Ignore Triggers

Same as normal raycast2 but has option to ignore colliders set to trigger
Rotate Around Target

You can use this to do DarkSouls like targeting when combined with "Smooth Follow Action No Look At" and a LookAt pointing at your target
Rotate to Forward Direction

Feed this a hitNormal from a cast to align objects to the hit object surface
Rotate to Up Direction

Feed this a hitNormal from a cast to align objects to the hit object surface
Simple Overlap Box

Casts an OverlapBox and returns the first object hit (can be used an an alternative to box colliders for melee collisions)
Simple Overlap Capsule Plus

Casts OverlapCapsule returns hitobject and hitpoint-
- works will all collider types except mesh and terrain
Simple Overlap Sphere

Casts an OverlapBox and returns the first object hit
Simple Overlap Sphere Plus

Casts OverlapSphere returns hitobject and hitpoint-
- works will all collider types except mesh and terrain
Smooth Follow Action No Look At

A smooth follow action that does not look at the object its following
Sphere Cast 2

Subtract Fsm Int

Transform Vector

Trigger Event Ignore Game Object

Works same as Trigger event except will ignore collisions with a game object var
Trigger Event Once Per Object

Works same as Trigger event except will only allow objects to trigger once each
Trigger Event Store Hit Object

Works same as Trigger event except stores hit object as gameObject instead of collider
Ugui Set First Selected Game Object

Flight Path Action

Does basic flight pathfinding with a rigid body using Raycasts- example flight
Rigid Body settings
