playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Aaron2348

Pages: [1]
1
PlayMaker Help / Re: Array object to hand transform
« on: October 17, 2020, 06:11:51 PM »
ok, I guess the "object" is a prefab, so when you create the object, you want it to randomly appear?
is that correct?

first of all, where is the array variable resides? is it on the object prefab or is it somewhere on the scene?

the easiest scenario is the array variable is reside on the object itself, then you can do this:

1. Get random array and save it into your v3 variable (Retrieve the v3 value from array)

2. Then set position UserOwner to v3 variable
3. Done

If the object is a prefab and the array reside on the scene object, then

1. Get random array and save it into your v3 variable (Retrieve the v3 value from array)

2. Create Object, Drag the prefab onto it, set position to V3 Variable
3. Done

Hope it helps

Hey so ive tried what u said and im pretty sure its working but how could i do this for multiple prefabs? To randomly set multiple weapons in a characters hand

2
PlayMaker Help / Re: Array object to hand transform
« on: October 17, 2020, 08:01:43 AM »
ok, I guess the "object" is a prefab, so when you create the object, you want it to randomly appear?
is that correct?

first of all, where is the array variable resides? is it on the object prefab or is it somewhere on the scene?

the easiest scenario is the array variable is reside on the object itself, then you can do this:

1. Get random array and save it into your v3 variable (Retrieve the v3 value from array)

2. Then set position UserOwner to v3 variable
3. Done

If the object is a prefab and the array reside on the scene object, then

1. Get random array and save it into your v3 variable (Retrieve the v3 value from array)

2. Create Object, Drag the prefab onto it, set position to V3 Variable
3. Done

Hope it helps

Ok thanks im going to try this and see how it goes, the prefabs have to be parented to a weapon handler in the scene so im pretty sire the second approach will work just fine, thanks again

3
PlayMaker Help / Re: Array object to hand transform
« on: October 16, 2020, 05:25:19 AM »
Use ArrayList It is on the Ecosystem. It is much better than the original array.

In your case,

1. Go to variable tab on your fsm. Enter a name and set its type to array.
then you click on the variable that you just made and set its content to Vector 3.
then you can add how many vector3 values u want
fill it

2. Fill the array with values, in your case vector3 value, u should make more than one value since you want to random get it.

3. Check if you've successfully retrieved the random vector3 into your variable (myVector3)

3. Then u can set transform with your myVector3

Hey thanks for the reply, So i did download array list but i think its much easier to do with the default arrays they are more simple for my brain, and also about arrays, i did make an array with vector 3 but my thing is how then would i instantiate a object into these vector 3s and what would i use to check myvector3 variable?

4
PlayMaker Help / Array object to hand transform
« on: October 15, 2020, 03:26:40 PM »
Hi. I'm needing some help with built in array actions in playmaker i have made a array variable and want to randomly set an object in the array to a transform in my characters hand
Every time a scene starts, As far as i have gotten is making the variable and setting the Get Random array action in a state but i don't know where to go from here, anyone who can help i would highly appreciate it

5
PlayMaker Help / Re: Lock and Hide Cursor
« on: October 07, 2020, 05:28:58 AM »
>but about aio can i still use my fp controller logic on the fsm and just use the camera

Once you install the AIO asset, you won't need to. Think of it is a pre-built controller "Driver" for your character. Everything is setup in the devs script, but in the screenshot i've attached below you only need to worry about adjusting the parameters to your liking. Just drag that blue box into your scene...

Image1: A project I'm currently working on, it has the capsule (Headjoint) and PlayerCamera integrated when you drag that blue box into your scene. That green ball is my MB (MotionBlur) setup I did afterwards, its not included.

Image2: You can adjust the mouse look sensitivity, it even comes with that auto-lock mouse hide cursor I mentioned, stamina bar, jumping parameters...its all there.

Image 3 & 4: Just showing my Post Processing Layer to configure motion blur.
If you want to know how to incorporate that into your AIO camera, this did the trick:


From there, you can even fiddle with more post-processing effects.


I'm more than confident this will sort out your problems with camera, mouse going over the screen, player controller etc...

If not, well then you're shit outta luck   ::)

Hey thanks for this Aio really helped me out a lot and it is way better then what i had going with Playmaker, it's a really nice fpc and also Thank you for the guide to motion blur u included, very useful information.

6
PlayMaker Help / Re: Lock and Hide Cursor
« on: October 05, 2020, 02:39:51 PM »

By Copying/Pasting do you mean from my file explorer? like just copying and pasting playmaker and my scene into the new project from there?

Yep, thats it. Did you put Translate and GetAxis into your FSM's aswell?

You can circumvent this whole process by installing a pre-made camera controller and just dragging and dropping that into your scene.

https://assetstore.unity.com/packages/tools/input-management/first-person-all-in-one-135316

Give that a download, you can drag and drop the AIO asset into your game and customize camera/movement controls etc, so you don't need all those FSM's.

Comes with a mouse lock/hide cursor function. Can adjust the gravity to your liking aswell.

Okay im going to try both things u mentioned first copying and pasting the folders, but about aio can i still use my fp controller logic on the fsm and just use the camera, is that what u are saying? or do i also have to use the fpc?
But also what do u mean by translate and get axis in the fsm?


7
PlayMaker Help / Re: Lock and Hide Cursor
« on: October 05, 2020, 01:03:42 PM »
I didn't think exporting the project would make a difference, seeing as your bug is still somewhere inside your existing project. That's why I just copy everything and paste into a new project file.

Could you share a screenshot of your FSM view and your hierarchy window? Might be easier to identify the problem because I had this exact same problem as you a month ago...and it too drove me nuts! :P
By Copying/Pasting do you mean from my file explorer? like just copying and pasting playmaker and my scene into the new project from there?

8
PlayMaker Bug Reporting / Cursor Action not working in 2019.4.11f1
« on: October 05, 2020, 12:10:46 PM »
Hi so i think there is a bug for Set Cursor Action in 2019.4.11f1 because i have set the mouse cursor hide cursor and lock cursor bools both to true and when i play the scene it will not lock nor hide the cursor. I even set them to false and set a texture to the cursor and still it does not show, I also started a new project and still it does not work.

9
PlayMaker Help / Re: Lock and Hide Cursor
« on: October 05, 2020, 11:59:43 AM »
No problem. Unfortunately I've never considered making an FSM template, so I wouldn't know how. I ran into this problem a month back when I saved a project, and I downloaded the new unity editor version, my playmaker project wouldn't load correctly.

When I encountered this problem, I selected and copied my whole hierarchy, pasted to a new project file and re-pasted. Everything worked fine guy.

I even went as far as to make a .txt file to let myself know if I encounter problems again. Hopefully this might help you aswell.

Check if there's no MainCameras in your scene you aren't using, if the problem STILL persists, install the AIO Camera Asset (its free) if you haven't already.
Hey so since i was using the same Unity version i just exported the assets into a package and loaded them into the new project but still the cursor will not lock and hide, this is just odd too me might ne a bug

10
PlayMaker Help / Re: Lock and Hide Cursor
« on: October 05, 2020, 10:46:45 AM »
No problem. Unfortunately I've never considered making an FSM template, so I wouldn't know how. I ran into this problem a month back when I saved a project, and I downloaded the new unity editor version, my playmaker project wouldn't load correctly.

When I encountered this problem, I selected and copied my whole hierarchy, pasted to a new project file and re-pasted. Everything worked fine guy.

I even went as far as to make a .txt file to let myself know if I encounter problems again. Hopefully this might help you aswell.

Check if there's no MainCameras in your scene you aren't using, if the problem STILL persists, install the AIO Camera Asset (its free) if you haven't already.
Okay I will give this a try Thank you!!

11
PlayMaker Help / Re: Lock and Hide Cursor
« on: October 05, 2020, 09:28:45 AM »
Did you try creating that new FSM in a new project aswell?

If the mouse is going over the screen and not locking that did the trick for me.

Yeah i guess i will try that i just don't want to start all over on my other fsm, is there a way i can import the other fsm? Like do you know how i would make it a template or something like that for the new project? Thanks for all the help to i really appreciate it.

12
PlayMaker Help / Re: Lock and Hide Cursor
« on: October 05, 2020, 07:19:42 AM »
You did it this way and it still doesn't work...?

Can try creating a new scene and trying again.

Hey so yeah i did exactly what u showed and i also just tried to start a new scene and see if it worked but still does not work.

13
PlayMaker Help / Lock and Hide Cursor
« on: October 04, 2020, 10:55:31 AM »
Hi can somebody help me to hide and lock the cursor in my scene?  I have used the set cursor action and set the bools to true but when i play the scene it still does not work.

Pages: [1]