Frictional Games Forum (read-only)
help with OnIgnite scripting - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: help with OnIgnite scripting (/thread-6647.html)



help with OnIgnite scripting - lightsheik - 02-19-2011

I want to light 8 torches to make something happen. How can I do that. I think I know how to make 1 torch work with the script, but how can I do it so I need to light all 8 torches to make it happen ?


RE: help with OnIgnite scripting - Frontcannon - 02-19-2011

(02-19-2011, 07:12 PM)lightsheik Wrote: I want to light 8 torches to make something happen. How can I do that. I think I know how to make 1 torch work with the script, but how can I do it so I need to light all 8 torches to make it happen ?

Use a callback for every torch that adds a value to a torches_lit-variable and once it has reached.. say, 8, make it happen.


RE: help with OnIgnite scripting - lightsheik - 02-20-2011

Sorry, I'm not that good with script and I dont really understand how to do that.


RE: help with OnIgnite scripting - Ongka - 02-20-2011

(02-20-2011, 03:47 AM)lightsheik Wrote: Sorry, I'm not that good with script and I dont really understand how to do that.

Then try to do basic scripting and soon you will be able to do those scripts by yourself. There are many tutorials in the wiki or in this forum.