SetObjectEmissiveColor
From Onset Developer Wiki
Description
Makes an object glow with a specified hexadecimal value, intensity and material slot on the object
Syntax
SetObjectEmissiveColor(object, ColorHex, EmissiveStrength [, MaterialSlot])
Parameters
- object
The object identifier. - ColorHex
Hexadecimal color value - EmissiveStrength
The strength/brightness of the glow - MaterialSlot (optional)
The material slot of the object model
Return Value
- __EDIT_ME__
Example
function OnObjectStreamIn(object)
local glow = GetObjectPropertyValue(object, "glow") -- 0x0000FF
if glow ~= nil then
local intensity = 30
SetObjectEmissiveColor(object, glow, intensity )
end
end
AddEvent("OnObjectStreamIn", OnObjectStreamIn)
See also
- GetObjectCount
- GetObjectModelCount
- GetObjectModelGroup
- GetObjectModelName
- GetStreamedObjects
- GetObjectModel
- GetObjectLocation
- GetObjectRotation
- GetObjectScale
- GetObjectBoundingBox
- GetObjectSize
- EnableObjectHitEvents
- GetObjectMass
- SetObjectEditorSpeed
- SetObjectEditable
- SetObjectOutline
- SetObjectCastShadow
- SetObjectColor
- SetObjectTexture
- SetObjectAnimatedTexture