View Issue Details

IDProjectCategoryLast Update
0018400Starward RogueBug - OtherMar 10, 2016 12:43 pm
Reporterptarth Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version0.855 
Summary0018400: modifier target=NearbyEntities may not be working
DescriptionTrying to get a modifier to affect NearbyEntities and I can't get it. Keith gave me some starter code but I couldn't get it to work. I think it is an engine problem, but it might just be me. No one else has produced any public code with NearbyEntities working either.

Some example code which should have worked (I think).

    <system name="ShieldAddSystem"
  category="DirectUseSystem"
     shot_type="Invisible"
     damage_type="Ballistic"
     attack_power="1" fire_rate="1"
     range_actual="500" cue_time="0"
     shots_per_salvo="1"
     targeting_logic="Dumbfire" firing_timing="AllTheTime"
     image_name="Invisible"
     initial_firing_delay="0"
  distance_threshold_modifiers_applied_to_nearby_entities="500"
  modifiers_applied_to_nearby_entities_can_target_allies="true"
  modifiers_applied_to_nearby_entities_can_target_enemies="true"
     >
  <modifier target="NearbyEntities" type="DamagePerSecond" math="add" magnitude="1" do_not_stack="true" duration="-1"/>
  </system>
TagsNo tags attached.

Activities

keith.lamothe

Mar 10, 2016 12:43 pm

administrator   ~0045386

For 1.017:

* Fixed a bug where not setting modifiers_applied_to_nearby_entities_max_simultaneous_affected (thus leaving it at the default of zero) would cause NearbyEnemies modifiers to never be applied to anything. Now the default functions as "no limit".

Thanks :)

In your case you also need to add damage_type="Ballistic" to the modifier tag. That error showed up in the top-right log window when I tried your test code. But that was the only change I had to make to get it to work in my testing.

Issue History

Date Modified Username Field Change
Jan 21, 2016 6:49 am ptarth New Issue
Jan 21, 2016 5:13 pm Chris_McElligottPark Assigned To => keith.lamothe
Jan 21, 2016 5:13 pm Chris_McElligottPark Status new => assigned
Mar 10, 2016 12:43 pm keith.lamothe Note Added: 0045386
Mar 10, 2016 12:43 pm keith.lamothe Status assigned => resolved
Mar 10, 2016 12:43 pm keith.lamothe Resolution open => fixed