playMaker

Author Topic: Picking up objects  (Read 19854 times)

richardh

  • Junior Playmaker
  • **
  • Posts: 97
Re: Picking up objects
« Reply #15 on: January 05, 2015, 05:05:47 PM »
@coffeeANDsoda There's just one set of FSM's on the object that you want to be a pickupable. But I have parented a trigger to the 1st person camera. It would be perfectly possible to set this up for a mouse-click event on the object though, rather than a controller.

What does that mean for the needed actions to pull this off? And what other objects needed to get it to work? Or since you are using a first person prefab? See I want to pull this off without using scripts or the third or first person controller prefab.

richardh

  • Junior Playmaker
  • **
  • Posts: 97
Re: Picking up objects
« Reply #16 on: January 05, 2015, 05:31:47 PM »
Lane, How do you set this FSM up (dragWithGo)? I have it in my Playmaker Actions now, but I can't fathom how to use it. I've put it on a rigid body gameObject, and I've tried putting it on my 1st person controller and targeting a rigid body gameObject but alas I can't get it to work. can you list the steps to get it working with say a rigid body Cube?

thanks

Seen this?

http://hutonggames.com/playmakerforum/index.php?topic=1286.msg17057#msg17057

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Picking up objects
« Reply #17 on: January 05, 2015, 06:01:28 PM »
Think of it as a magnet. Put it on your character or weapon and use events from mouseclicks or something to jump in and out of the state where it is used.

Tweak the variables at runtime while the action is active to debug it as the settings have a huge impact on how the drag is handled and reacts overall.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

richardh

  • Junior Playmaker
  • **
  • Posts: 97
Re: Picking up objects
« Reply #18 on: January 05, 2015, 07:05:18 PM »
Thanks, Sussed it.

Think of it as a magnet. Put it on your character or weapon and use events from mouseclicks or something to jump in and out of the state where it is used.

Tweak the variables at runtime while the action is active to debug it as the settings have a huge impact on how the drag is handled and reacts overall.

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: Picking up objects
« Reply #19 on: January 08, 2015, 06:37:31 PM »
every time I come to this site, it always says this topic has unread posts, however it does not.  Something got messed up.  Weird.

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Picking up objects
« Reply #20 on: January 11, 2015, 11:54:30 PM »
Seen this?

http://hutonggames.com/playmakerforum/index.php?topic=1286.msg17057#msg17057

Wouldn't that mean I'd have to create a script instead of implementing playmaker actions onto the players fsm?

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: Picking up objects
« Reply #21 on: January 12, 2015, 12:52:00 AM »
If you want an easy out (not using playmaker) there are assets in the store that will do this easily.  I've seen them, but can't recall the names.  Just a thought.


Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Picking up objects
« Reply #22 on: January 12, 2015, 07:22:27 AM »
Seen this?

http://hutonggames.com/playmakerforum/index.php?topic=1286.msg17057#msg17057

Wouldn't that mean I'd have to create a script instead of implementing playmaker actions onto the players fsm?

No.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Picking up objects
« Reply #23 on: January 12, 2015, 05:25:27 PM »
Seen this?

http://hutonggames.com/playmakerforum/index.php?topic=1286.msg17057#msg17057

Wouldn't that mean I'd have to create a script instead of implementing playmaker actions onto the players fsm?

No.

And this URL does contain a example to pick up/carry a object with only actions?
« Last Edit: January 12, 2015, 05:35:31 PM by coffeeANDsoda »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Picking up objects
« Reply #24 on: January 12, 2015, 05:55:02 PM »
Seen this?

http://hutonggames.com/playmakerforum/index.php?topic=1286.msg17057#msg17057

Wouldn't that mean I'd have to create a script instead of implementing playmaker actions onto the players fsm?

No.

And this URL does contain a example to pick up/carry a object with only actions?

Yes.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Picking up objects
« Reply #25 on: January 12, 2015, 06:50:26 PM »
Seen this?

http://hutonggames.com/playmakerforum/index.php?topic=1286.msg17057#msg17057

Wouldn't that mean I'd have to create a script instead of implementing playmaker actions onto the players fsm?

No.

And this URL does contain a example to pick up/carry a object with only actions?

Yes.

What I don't understand is that dragWithGo project has a c# script needed for this whole pick up and carry thing to work. I thought that's what you didn't want me to download, right?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Picking up objects
« Reply #26 on: January 12, 2015, 07:34:54 PM »
Actions are C# scripts.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Picking up objects
« Reply #27 on: January 13, 2015, 03:23:34 AM »
Actions are C# scripts.

I see. I tried the example scene, and for dragging a object doesn't work. So I created a scene with a object with a rigidbody. Problem is when I set up the player with a mouse pick event while having it transition into another state using Drag Digidbody With Go plus Mouse Pick Event on mouse off, it doesn't respond. And if I add a trigger event, it doesn't follow the player fast enough to keep up with the movement of the player. Plus it I'm not able to carry it like amnesia or half life 2.

So what else am I missing? Wouldn't be easier to set up a empty object to act like a magnet so I wouldn't have to deal with a global variable or global manager? Or would it be best to make a FSM for the object with a get or set position after the player interacts with it?



Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Picking up objects
« Reply #28 on: January 13, 2015, 06:54:06 AM »
Wouldn't be easier to set up a empty object to act like a magnet so I wouldn't have to deal with a global variable or global manager?

Yes, and that can be setup with the action. Give it a try.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Picking up objects
« Reply #29 on: January 13, 2015, 09:59:56 PM »
Wouldn't be easier to set up a empty object to act like a magnet so I wouldn't have to deal with a global variable or global manager?

Yes, and that can be setup with the action. Give it a try.

With a raycast or set position on the lifted object?