Allow beams be trigger_created_entity

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Allow beams be trigger_created_entity

Post by Adil »

Currently, trigger_created_entity="true" has effect only if stated in

Code: Select all

    action =
    {
      type = "direct",
      action_delivery =
      {
        type = "instant",
        target_effects =
        {
          type = "create-entity",
          trigger_created_entity="true"
...
Whereas beams are created by:

Code: Select all

        action =
        {
          type = "direct",
          action_delivery =
          {
            type = "beam",
...
(which also should be located inside attack_parameters={type = "beam", ...)

It would be nice if somewhere there in beam creation we could also place trigger_created_entity="true" so that we could get the event which would allow to detect beam creation (and a pair of entities which are connected by it).

Also, currently beams cannot be created by action of type "create-entity" can they? (Just a related question. Not that I can come up with uses for that.)
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

Post Reply

Return to “Modding interface requests”