Page MenuHomeFeedback Tracker

"GroundWeaponHolder" can't be found if it were created from RscButton related action
Closed, ResolvedPublic

Description

  1. Establish a RscButton.hpp for our mission UI dialogue.
  1. Inside class RscButton do like that: class RscButton {

action = "WeaponHolder = 'GroundWeaponHolder' createVehicle [0,0,0];";

   };
  1. Preview the mission and press the button to create a weaponholder, go to debug console and watch the variable WeaponHolder, it always return ObjNull

Details

Legacy ID
602623702
Severity
None
Resolution
No Bug
Reproducibility
Have Not Tried
Category
Scripting

Event Timeline

ffur2007slx2_5 edited Additional Information. (Show Details)
ffur2007slx2_5 set Category to Scripting.
ffur2007slx2_5 set Reproducibility to Have Not Tried.
ffur2007slx2_5 set Severity to None.
ffur2007slx2_5 set Resolution to No Bug.
ffur2007slx2_5 set Legacy ID to 602623702.May 7 2016, 5:41 PM
ffur2007slx2_5 added a subscriber: ffur2007slx2_5.

Pretty wired, If A3 will automatically delete empty GroundWeaponHolder within a millisecond, so WeaponHolderSimulated won't, unfortunately still no reference.

Other types of vehicles work except 5 weaponholders.

Empty weapon holders are deleted automatically. If you want your holder stay, add something to it in the same frame you created it.