Page MenuHomeFeedback Tracker

Passing empty string to setObjectTexture makes the selection invisible.
Closed, ResolvedPublic

Description

When an invalid texture is passed to setObjectTexture or setObjectTextureGlobal a warning message shows up on screen and no effect can be observed.
When passing an empty string "" instead, the specific hiddenSelection texture becomes invisible.

Short video (hosted on Twitter) can be found under this link: https://twitter.com/i/status/1452329190284533764

Details

Severity
None
Resolution
Not A Bug
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
21H1 Build: 19043.1288
Category
Scripting
Steps To Reproduce

Place down a vehicle (must have hiddenSelections defined in its config) in the editor and set the texture of one (if not all) hiddenSelections to an empty string via

_object setObjectTexture [#, ""];

Where # is the number of the hiddenSelection defined in the model's config, starting with 0.

The same effect can be observed when the global version of the command (setObjectTextureGlobal) is used.

Repro mission (SP) can be found under this link: https://www.dropbox.com/sh/35204jhnvfofza0/AABF0Vew2xfUkXZpYHvj8UpMa?dl=0

Additional Information

This has the potential to be exploited by cheaters in MP.

Event Timeline

KiloSwiss2 updated the task description. (Show Details)Oct 25 2021, 10:07 PM
KiloSwiss2 edited Steps To Reproduce. (Show Details)
dedmen closed this task as Resolved.Oct 26 2021, 10:08 AM
dedmen claimed this task.
dedmen added a subscriber: dedmen.

This is intentional and used by many mission makers.
If cheaters can freely execute scripts in MP you have a much bigger issue than just partially invisible vehicles.
if they want invisible vehicle they can just do hideObject and have a much simpler and better way to become invisible.

dedmen changed Resolution from Open to Not A Bug.Oct 26 2021, 10:08 AM