How can we make disappear/deleting/move an element?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Starnice
Posts: 13
Joined: Thu Sep 13, 2012 7:08 pm
Contact:

How can we make disappear/deleting/move an element?

Post by Starnice »

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!
User avatar
Starnice
Posts: 13
Joined: Thu Sep 13, 2012 7:08 pm
Contact:

Re: How can we make disappear/deleting/move an element?

Post by Starnice »

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
Lmaoboat
Posts: 359
Joined: Wed Apr 11, 2012 8:55 pm

Re: How can we make disappear/deleting/move an element?

Post by Lmaoboat »

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.
User avatar
Starnice
Posts: 13
Joined: Thu Sep 13, 2012 7:08 pm
Contact:

Re: How can we make disappear/deleting/move an element?

Post by Starnice »

I can not do it yet but thank you for the suggestion!
User avatar
Starnice
Posts: 13
Joined: Thu Sep 13, 2012 7:08 pm
Contact:

Re: How can we make disappear/deleting/move an element?

Post by Starnice »

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.

Code: Select all

function eclairage()
	fx_1:setLight(0, 0, 1, 10, 2, 20, false)
end
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?
User avatar
Starnice
Posts: 13
Joined: Thu Sep 13, 2012 7:08 pm
Contact:

Re: How can we make disappear/deleting/move an element?

Post by Starnice »

Okay, a simple "temple_ceiling_lamp_3: deactivate ()" is enough to turn off the light ...
Post Reply