playMaker

Author Topic: Target Object can't be set to Use Owner  (Read 2714 times)

szomaza

  • Sr. Member
  • ****
  • Posts: 253
Target Object can't be set to Use Owner
« on: May 10, 2014, 08:26:57 AM »
Hi,

In the "Move Towards" action the "Game Object" field can be set to "Use Owner" and also to "Specify Game Object".
The field bellow it: "Target Object" only allows "Specify Game Object".

Why?

Yes, you can do a workaround by getting the owner into a game object variable and then specifying that, but what is the reason in making this harder by NOT allowing the "Use Owner" possibility?

Please fix this!
And also check ALL actions and allow the "Use Owner" possibility where it's not allowed currently. There are other actions too, with this IMHO unnecessary limitation.

Br,
Szomaza

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Target Object can't be set to Use Owner
« Reply #1 on: May 10, 2014, 08:51:56 AM »
Under what circumstances would it need to move toward itself?

The movement would be zero, nothing would happen. Since the Use Owner isn't adjustable at runtime it seems like this would effectively make a useless action if Use Owner was actually chosen in that field.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

szomaza

  • Sr. Member
  • ****
  • Posts: 253
Re: Target Object can't be set to Use Owner
« Reply #2 on: May 22, 2014, 03:22:26 AM »
Under what circumstances would it need to move toward itself?

Never of course. That would be silly.
I don't want to set Use Owner in both fields.

What I would like to do EASILY is move an object (stored in a variable) that I specify in the Game Object field, towards the object that has an FSM with this action in it.
For this I need to be able to set Use Owner as the Target Object.

I can do this now with a workaround: first I have to save the Owner of the FSM in a game object variable and specify that as the target object.
It would be easier if I could just set Use Owner there.

Am I right or am I not wrong?

Please fix this!
And also check ALL actions and allow the "Use Owner" possibility where it's not allowed currently. There are other actions too, with this IMHO unnecessary limitation.

Br,
Szomaza

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Target Object can't be set to Use Owner
« Reply #3 on: May 22, 2014, 03:25:17 AM »
Hi,

 in these cases, I use the action "Get owner" that I only fire on the start state and save the owner in a variable, then I can reuse it in all the actions I want.

 But, yes if the gameobject property could always have this option built that would help.

Bye,

 Jean

szomaza

  • Sr. Member
  • ****
  • Posts: 253
Re: Target Object can't be set to Use Owner
« Reply #4 on: May 22, 2014, 03:47:00 AM »
Hi Jean,

Yes, I use the Get Owner action once in the beginning too, for the workaround.

Just mentioned this limitation so it gets fixed in every action (I remember previously encountering others) where the Use Owner possibility is not allowed ... for some reason.

Br,
Szomaza

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Target Object can't be set to Use Owner
« Reply #5 on: May 22, 2014, 07:28:18 AM »
Hm, you are using the owner object to do tell another object "move to me" basically?

I've never used it that way but it makes sense. It was probably not intended for that direction of workflow which is why Owner wouldn't be available in that field. I agree that sort of multidirectional thought is missing from a few actions. Like Jean says though, get the owner in the Init/Start state into a variable and that's really all there is to it.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

szomaza

  • Sr. Member
  • ****
  • Posts: 253
Re: Target Object can't be set to Use Owner
« Reply #6 on: May 26, 2014, 01:50:33 AM »
Hm, you are using the owner object to do tell another object "move to me" basically?

Yes, that's how I'm using it.

Thanks,
Szomaza