Jump to content

[Help]Object Scale


Black2

Recommended Posts

Posted

I want all objects of a certain Id have another scale.

Example:All objects have a scale of 1, I want all id 1234 object has the scale 2.

How i can make this ?

Posted
for i, v in ipairs(getElementsByType("object")) do 
    local model = getElementModel(v) 
    if model == 1234 then 
        setObjectScale(v,2) 
    end 
end 

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...