#Read Owner Entity in System

1 messages · Page 1 of 1 (latest)

proven saddle
#

i have two entity Player and Jump

#

And i read all Jump Entity, i want to apply Jump Logic there are owner Player Entity

#

i need to know what is proper way to ECS concept

#

should i using some Chunk Component?

zenith violet
#

Why do you have a jump entity?

proven saddle
#

cause that entity have some cooltime, condition... and so on

#

@zenith violet

#

and i want to add some other skills to

zenith violet
#

Since you're doing an entity query you can use SystemAPI.GetComponentRW to change the source component, but the way you've set it up sounds a bit clunky. But it will work

proven saddle
zenith violet
#

I'm not entirely sure what you're trying to do, but if it affects the player entity directly then it usually makes more sense to have the jump component on the player entity

#

Generally you'll want to set up your queries to primarily modify what they loop over

proven saddle
#

ok then i trying create some skill system in one entity