Frictional Games Forum (read-only)

Full Version: help with OnIgnite scripting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 ?
(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.
Sorry, I'm not that good with script and I dont really understand how to do that.
(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.