playMaker

Author Topic: How do you make a charterer teleport when you get in a radius of an object?  (Read 1412 times)

KobyPierce123

  • Playmaker Newbie
  • *
  • Posts: 2
How do you make a charterer teleport when you get in a radius of an object? And how do you make it where when you touch an object it plays a sound?

KobyPierce123

  • Playmaker Newbie
  • *
  • Posts: 2
And how do you rename a project in unity?

Thore

  • Sr. Member
  • ****
  • Posts: 480
 
And how do you rename a project in unity?


You can rename the main folder of the project (the one shown in hub), but you may then just ADD it again in the hub.

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
How do you make a charterer teleport when you get in a radius of an object? And how do you make it where when you touch an object it plays a sound?
Get Distance between Player and that object every frame. Then, use Float compare and fire the action when that Distance is met radius.

LuminRabbit

  • Full Member
  • ***
  • Posts: 161
  • Lumin Rabbit
You could also add colliders.

Use a sphere collider for the radius, check IsTrigger in the inspector (may need to put this on an empty gameobject and make it a child), then do a Trigger Event action to another state which sets the characters position (sSet Position action) and presto the character is teleported.

You can use a trigger for the sound as well same concept just a smaller collider that fits perfectly.
 
« Last Edit: June 06, 2020, 08:41:35 PM by Kodagames »
Have I said how much I love playmaker!!! This is one amazing tool