Page MenuHomeFeedback Tracker

currentMuzzle and currentWeaponMode return a number instead of a string
Acknowledged, WishlistPublic

Description

currentMuzzle returns 0 when used on vehicles.
Same happens with currentWeaponMode. Additionally they return 0 when used with objNull.

Details

Legacy ID
3075528117
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  • get inside a vehicle
  • put "currentMuzzle cameraOn" into the debug console

-> returns 0 instead of "" or any other string

currentMuzzle objNull
-> 0

currentWeaponMode objNull
-> 0

Additional Information

Even though the command is not meant to work on vehicles, it should at least return the correct data type instead ("" instead of 0). Would be nice if it worked with vehicles though.

Event Timeline

commy2 edited Steps To Reproduce. (Show Details)Aug 12 2015, 11:03 AM
commy2 edited Additional Information. (Show Details)
commy2 set Category to Scripting.
commy2 set Reproducibility to Always.
commy2 set Severity to None.
commy2 set Resolution to Open.
commy2 set Legacy ID to 3075528117.May 8 2016, 12:30 PM
commy2 added a subscriber: commy2.
commy2 added a comment.Oct 9 2015, 1:02 AM

I noticed that the same happens with currentWeaponMode and edited the issue title and description.