Page MenuHomeFeedback Tracker

ArtilleryShellFired mission eventhandler projectile Null
New, NormalPublic

Description

ArtilleryShellFired mission event handler gives objNull for the projectile param when unit is not local.

With ArtilleryShellFired mission event handler;
When the unit that fires and activates it is not local, the projectile param will always be objNull.
It does work as expect when unit is local.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Server ( Windows Server 2022 Standard - 10.0.20348 Build 20348 ), Client ( Windows 10 Home - 10.0.19045 Build 19045)
Category
Scripting
Steps To Reproduce
  1. Create test mission, 2 player slots, at least one vehicle that is considered artillery and the debug console available.
  2. Load mission with 2 clients.
  3. run code to add event handler that dumps output into a test variable, and watch the variable. (on both clients)
addMissionEventHandler ["ArtilleryShellFired", {
	test = str (_this # 7);
}];
  1. have a client get in and fire the artillery.
  2. The client that fired has the test variable show the shell info, but the other non-local client will show <NULL-object>

Event Timeline