Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coffeeANDsoda on March 19, 2015, 03:10:03 PM

Title: Freeze players position, rotate and launch.
Post by: coffeeANDsoda on March 19, 2015, 03:10:03 PM
How does a person set something like this up like in the video below? Theirs having a trigger, enabling another object, but cant seem to freeze the players position, rotate, and add a Add Force action to throw it into the air.


Title: Re: Freeze players position, rotate and launch.
Post by: sebaslive on March 19, 2015, 07:05:58 PM
Try this asset out. Maybe it will work! Hopefully
Title: Re: Freeze players position, rotate and launch.
Post by: coffeeANDsoda on March 19, 2015, 07:10:32 PM
Try this asset out. Maybe it will work! Hopefully

What about without new scripts added? When I can, I will experiment with this new action you were able to make, but isn't there a alternative to coding a action, like making a fsm to deal with this issue? 
Title: Re: Freeze players position, rotate and launch.
Post by: sebaslive on March 20, 2015, 09:50:41 AM
Oh, I found the action around here. I know putting objects with force to sleep will stop them and then you just need to addforce to the direction you want it to go after it stops like a cannon but other then that I am not sure.
Title: Re: Freeze players position, rotate and launch.
Post by: coffeeANDsoda on March 20, 2015, 03:24:06 PM
Would you say without using this action, I could use a itween action for sleeping or stopping?
Title: Re: Freeze players position, rotate and launch.
Post by: coffeeANDsoda on March 20, 2015, 05:50:08 PM
Also the scene is for a game that's in 2.5d. So for example my character is set up with a Z'd axis that is negative, and it appears this action seems like it's for 3D games. So it just takes the character off of it's position given it's range. Makes it more complicated when I am unable to use a local vector 3 variable instead of a float.
Title: Re: Freeze players position, rotate and launch.
Post by: sebaslive on March 21, 2015, 10:07:19 AM
Have you been able to set just the X and Y for the Vector 3?
Title: Re: Freeze players position, rotate and launch.
Post by: coffeeANDsoda on March 21, 2015, 02:58:33 PM
Have you been able to set just the X and Y for the Vector 3?

For the range field or angle? Physics Shoot only uses float variables.
Title: Re: Freeze players position, rotate and launch.
Post by: coffeeANDsoda on March 22, 2015, 12:09:56 AM
This is part of the rotate FSM. Before this state there are a couple more plus a state dealing with freezing it's position(XYZ) as well as rotation via set property I think.

https://db.tt/Xn0YkQgn
Title: Re: Freeze players position, rotate and launch.
Post by: sebaslive on March 22, 2015, 07:26:21 AM
I would have to try out my own because I think I am not understanding but let me know how you solve it. I will attempt it if I have time.
Title: Re: Freeze players position, rotate and launch.
Post by: coffeeANDsoda on March 23, 2015, 03:57:51 AM
I would have to try out my own because I think I am not understanding but let me know how you solve it. I will attempt it if I have time.

And I will continue working on this and will let you know about any process. Still though, doesn't seem that the rotating object that triggers the players pos freeze doesn't launch it. The rotating cube acts like the barrel in the video I posted, so that's pretty much my goal.