Hi, so first of all let's say I set my prop to blue then how can I get back to his original color ?
Much love lads, thanks in advance !
Create a variable that stores the entity's colour before changing it, then just set the colour to the variable. I'd advise using EntIndex() so that it doesn't conflict with other props.
I see what you mean but I don't know how to use it. Could you hint me a tincy bit more ?
local previous_color = ent:GetColor() // Save Color
ent:SetColor(Color(0, 0, 255, 255)) // Paint prop Blue
// Set the previous color in 5 seconds
timer.Simple(5, function() ent:SetColor(previous_color) end)
Oh sweet, I am going to use it in my script, thank you very much, but how about using the EntIndex() ? How do we go about that, that's why I was confused.
ent:SetColor(Color(255, 255, 255))
Make it white, which is equivalent to no color.
Oh yeah exactly, thank you very much, I don't know I didn't think about it right away ! I tried
ent:SetColor(Color(0, 0, 0)
but obviously it wasn't correct aha, much love guys you're awesome !
Gotta take note of this though
https://i.gyazo.com/e17ef0013b0f7b84cb0872b64e471d89.png
Maybe Entity/GetCreationID
Only downside is that it's strictly serverside
Sorry, you need to Log In to post a reply to this thread.