Page 1 of 1

Allow beams be trigger_created_entity

Posted: Sun Oct 04, 2015 10:26 am
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.)