B Info Module System Universal ranged weapon shooting script

Users who are viewing this thread

Status
Not open for further replies.
ti_on_weapon_attack is all well and good, but sometimes there are just too many ranged weapon tuples to add such a trigger into. However, the hardcoded two-parameter script game_missile_launch, which is normally called whenever any agent fires or throws a weapon, can be used as an easier solution:
("game_missile_launch",
    [
    (store_script_param, ":p1", 1), # agent
    (store_script_param, ":p2", 2), # weapon that the missile is fired from
  [do whatever you want with them]
      ]),
PS. besides, pos0 gives the weapon's position.
PPS. Thanks to Swyter and The_dragon for hinting at the possibility to use hardcoded scripts/presentations in the MS.
PPPS. Locked for now because it's already known.
 
Status
Not open for further replies.
Back
Top Bottom