Page MenuHomeFeedback Tracker

ingame help template says "currentWeaponMode" should return String, but it returns SCALAR
New, WishlistPublic

Description

as above

Details

Legacy ID
4148284571
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

put

currentWeaponMode vehicle player;

and

typeName currentWeaponMode vehicle player;

in a Watch field of the debug console and get into different seats of different vehicles starting with NATO Hunter

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Scripting.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Open.
Killzone_Kid set Legacy ID to 4148284571.May 7 2016, 7:30 PM

It takes a unit.
It returns 0 if you pass it a vehicle.

"It takes a unit.
It returns 0 if you pass it a vehicle."

It works with vehicles, thank you very much.

My apologies, units on turrets in vehicles. But that is beside the point, it should not return SCALAR when it supposed to return STRING.

currentWeaponMode gunner vehicle player; //0 if gunner seat is empty