Create-entity trigger way to set Owner?

Place to get help with not working mods / modding interface.
User avatar
Fishbus
Inserter
Inserter
Posts: 33
Joined: Sat Sep 28, 2024 8:20 pm
Contact:

Create-entity trigger way to set Owner?

Post by Fishbus »

Heya,

I have a create-entity trigger effect that makes a few entities on creation. These are furnaces in this case.

They are created on enemy death, but as the player force I cannot use them. What determines the force they are created as? Is it inherited from the origin entity owner type (e.g. "enemy" because the trigger effect item is on that force entity when spawned) or is it something else?

I wanted to make it so this furnace when spawned are usable by the player force, but it seems like there is no way to spawn it as a particular force.

What would be the best way to do this if possible, and perhaps this is something that could be set in the create-entity trigger? e.g. "as_enemy" but instead "as_player"

cheers.
Post Reply

Return to “Modding help”