Jump to content

How to change character's render settings


PePePePePeil

Recommended Posts

I want to change character's alpha and overlay color in B41.

Let me ask you 2 questions.

 

[Question 1]

I tried  change IsoPlayer:setAlpha, and it was available for temporary change.
Temporary... I mean it could be set my specified alpha value but return to original value (1.0) soon.

I need permanent change so I tried some method, and I found like below.

MySandbox.OnPlayerUpdate = function(player)
   player:setAlpha(0.1)
end
Events.OnPlayerUpdate.Add(MySandbox.OnPlayerUpdate)

I could have done it this way, but I think it's a very forcibly way.
I'm worry about game-performance (especially rendering).

Is there any other  "smart" way to realize?

 

 

[Question 2]

I also want to change character's overlay color.
I tried using "CustomeColor" below, but could not change.

MySandbox.OnPlayerUpdate = function(player)
    player:setCustomColor(ColorInfo.new(0.5, 0.5, 0.5, 0.5))
    player:transmitCustomColor()
end
Events.OnPlayerUpdate.Add(MySandbox.OnPlayerUpdate)

Is there any way to change overlay color?
 

Edited by PePePePePeil
Link to comment
Share on other sites

  • PePePePePeil changed the title to How to change character's render settings

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...