I want to specify a specific object using an object group

Hello,

I would like to allow users to select from multiple operational players.

Currently, the data type for “Switch - Variable Changed” in Visual Scripting only allows selecting a single target object, so I am exploring implementation methods.

(I prefer not to consolidate all player objects into one, as that would result in an excessively large amount of processing.)

For example, would I need to prepare separate objects for each required character, such as:

  • Object a’ that modifies character B
  • Object a that modifies character A

Is there no other way?

What if we create a common modification object, Alpha, from the main characters, and then generate it as a child of the main characters?
(This depends on what modifications are being made.)

Since a child can manipulate the parent’s variables and switches, you should be able to handle processing according to the main character being operated on by manipulating Alpha as needed.

1 Like