DCS event weapon add

From DCS World Wiki - Hoggitworld.com


Event: S_EVENT_WEAPON_ADD Added with: 2.7
Enum ID: 34
Description: Currently occurs when an aircraft is spawned in air with weapons. Will occur for each pylon and can return targeting pods.
  Initiator : Aircraft that has the weapon that was added
  weapon_name : String of the weapon name.
Table Format: Example Format
Event = {
  id = 34,
  time = Time,
  initiator = Unit,
  weapon_name = string,
}
Examples: An example
  ["id"] = 34,
  ["weapon_name"] = "AGM-65G Maverick",
  ["time"] = 3.651,
  ["initiator"] = Object
Notes:
Events: shot, hit, takeoff, land, crash, ejection, refueling, dead, pilot_dead, base_captured, mission_start, mission_end, took_control, refueling_stop, birth, human_failure, detailed_failure, engine_startup, engine_shutdown, player_enter_unit, player_leave_unit, player_comment, shooting_start, shooting_end, mark_added, mark_change, mark_remove, kill, score, unit_lost, landing_after_ejection, discard_chair_after_ejection, weapon_add, landing_quality_mark