Page MenuHomeFeedback Tracker

addWeaponCargoGlobal/ addMagazineCargoGlobal doesn't work with randomized parameters
Closed, ResolvedPublic

Description

Example, called via a script:

An array is created (A2 classnames, problem remains the same:)
_Weap1 = ["ACE_RPK","ACE_AK74M","ACE_AKMS","M9"... and so on];

Now the script should select a random weapon out of the array and take a randomized amount...

_crate addWeaponCargoGlobal [_Weap1 select random 9, random 2];

Result:
The players won't have weapons inside the crate.

Details

Legacy ID
1823135761
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting

Event Timeline

Laxemann edited Steps To Reproduce. (Show Details)Jan 5 2014, 4:15 AM
Laxemann edited Additional Information. (Show Details)
Laxemann set Category to Scripting.
Laxemann set Reproducibility to Always.
Laxemann set Severity to None.
Laxemann set Resolution to No Bug.
Laxemann set Legacy ID to 1823135761.May 7 2016, 5:42 PM

It seems to be working fine for me. But "random 2" in count ends up in some cases with number bellow 0.5 and 0 weapons is added in that case. But I would say that it is correct behaviour. Is there any other issue with these commands?

No response for more than a month. Closing.

Mass-closing all resolved issues not updated in the last month.

Please PM me in BI Forums (http://forums.bistudio.com/member.php?55374-Fireball) if you feel your bug was closed in error.