Jump to content

How set object alpha to 255?


Tycka

Recommended Posts

If you want to set alpha for all 336 code object, you can use loop. e.g:

for index, object in ipairs(getElementsByType ("object")) do 
if getElementModel(object) == 336 then 
setElementAlpha(object, 255) 
end 
end 

If not, create object with variable and try this;

object = createObject(blablabla) 
setElementAlpha(object, 255) 

Link to comment
If you want to set alpha for all 336 code object, you can use loop. e.g:
for index, object in ipairs(getElementsByType ("object")) do 
if getElementModel(object) == 336 then 
setElementAlpha(object, 255) 
end 
end 

If not, create object with variable and try this;

object = createObject(blablabla) 
setElementAlpha(object, 255) 

I use this:

for index, object in ipairs(getElementsByType ("object")) do 
if getElementModel(object) == 336 then 
setElementAlpha(object, 255) 
end 
end 

But when I have bat in hand I still see it.

Link to comment

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...