Page MenuHomeFeedback Tracker

use setObjectTextureGlobal break JIP clearWeaponCargoGlobal clearMagazineCargoGlobal clearItemCargoGlobal
Assigned, WishlistPublic

Description

use setObjectTextureGlobal on a vehicle, will break JIP
clearWeaponCargoGlobal
clearMagazineCargoGlobal
clearItemCargoGlobal

and perhaps other global??

Details

Legacy ID
697373736
Severity
None
Resolution
Open
Reproducibility
Always
Category
Multiplayer
Steps To Reproduce

_vehicle = "B_MRAP_01_hmg_F"
createvehicle getpos player;
clearWeaponCargoGlobal _vehicle;
clearMagazineCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;
// try with or without setObjectTextureGlobal
_vehicle setObjectTextureGlobal[0,"#(argb,8,8,3)color(0.05,0.05,0.05,1)"];

Event Timeline

havena edited Steps To Reproduce. (Show Details)May 7 2014, 2:18 AM
havena edited Additional Information. (Show Details)
havena set Category to Multiplayer.
havena set Reproducibility to Always.
havena set Severity to None.
havena set Resolution to Open.
havena set Legacy ID to 697373736.May 7 2016, 6:34 PM

confirmed

execute provided script on client on dedicated server
look in the vehicle's inventory => empty
drop to lobby
back in game
check vehicle's inventory => full

today's dev

vbawol added a subscriber: vbawol.May 7 2016, 6:34 PM

This would likely explain the issue we are having with vehicle inventory getting replaced with first aid kits.

After testing it seems that if you set texture before you clear the cargo it works fine.

_vehicle = "B_MRAP_01_hmg_F"
createvehicle getpos player;
_vehicle setObjectTextureGlobal[0,"#(argb,8,8,3)color(0.05,0.05,0.05,1)"];
clearWeaponCargoGlobal _vehicle;
clearMagazineCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;

1.18