Page MenuHomeFeedback Tracker

Unable to use setObjectTexture command on units from script.
New, WishlistPublic

Description

So basically the issue is that I want to trigger a unit reskin depending on what uniform they are wearing at that moment but the setObjectTexture command won't work and does not return an error.

Details

Legacy ID
2458794023
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Place a unit in the editor and hit preview.
  2. Type in the debug console ( player setObjectTexture [0, ""]; ).

If the command was working correctly the unit would be invisible at this point.

Event Timeline

jacob88 edited Steps To Reproduce. (Show Details)Aug 16 2013, 11:08 AM
jacob88 edited Additional Information. (Show Details)
jacob88 set Category to Scripting.
jacob88 set Reproducibility to Always.
jacob88 set Severity to None.
jacob88 set Resolution to Open.
jacob88 set Legacy ID to 2458794023.May 7 2016, 4:03 PM
dedmen added a subscriber: dedmen.Sep 13 2017, 3:20 PM

You can setObjectTexture on unit's Uniforms just fine.