Hello.
Can we make disappear an element of scenery with a script?
I tried to move it instead of deleting it.
But, when I try to move through the script, I get an error on a "read only value".
Thank You!
How can we make disappear/deleting/move an element?
Re: How can we make disappear/deleting/move an element?
I realize that I am not very clear. (sorry for my english)
An example of what I want to move / remove if possible : temple_ceiling_lamp
An example of what I want to move / remove if possible : temple_ceiling_lamp
Re: How can we make disappear/deleting/move an element?
I don't think that's possible just yet, but I think you could use an fx entity and turn it on/off. Though come to think of it, there was that light that turned on when you grab that weapon to slay the final boss.
Last edited by Lmaoboat on Fri Sep 14, 2012 6:54 am, edited 1 time in total.
Re: How can we make disappear/deleting/move an element?
I can not do it yet but thank you for the suggestion!
Re: How can we make disappear/deleting/move an element?
Really, I can not do it.
I created an item "FX" (ID : fx_1) and a plaque, and a script I linked to the plate.
I get : attempt to index global 'fx_1' (a nil value)
Anyone know how to rectify this error? Or known to have a fx 'ON' from the start of the game?
I created an item "FX" (ID : fx_1) and a plaque, and a script I linked to the plate.
Code: Select all
function eclairage()
fx_1:setLight(0, 0, 1, 10, 2, 20, false)
end
Anyone know how to rectify this error? Or known to have a fx 'ON' from the start of the game?
Re: How can we make disappear/deleting/move an element?
Okay, a simple "temple_ceiling_lamp_3: deactivate ()" is enough to turn off the light ...