I was just wondering if there is a command to assign a Material to an Entity that has been created using the Spawn command:
- Code: Select all
local x = math.random(-10,10)
local y = math.random(0,10)
id = entity.spawn("Models_octagonS_x",x,y,-20,1,1,1);
The above works great
Now all I need is to be able to add/change the Material attached to it?? Is there a command for this yet?
If not, it's no biggie, as I can always work around it for the time being.
Regards
Shando