Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Any way to detect fires?

Keilaron Tomba
Free quality scripting
Join date: 10 Feb 2005
Posts: 57
02-18-2005 12:28
I want to make an object that can "catch fire". This poses several problems, though:
- There doesn't seem to be any way to check if a nearby object uses a texture that has a name that resembles something (i.e., I'd be checking to see if, say, a campfire object uses a texture with *fire* in the name, or *flame*, or ... etc.).
- I don't know if it's possible to have the object's flame always pointing towards the sky (as I intend to have this object holdable by someone, as though a match, with the flame rotating to always point upwards).
Any ideas?
_____________________
post_count++;
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
02-18-2005 13:40
From: Keilaron Tomba
I want to make an object that can "catch fire". This poses several problems, though:
- There doesn't seem to be any way to check if a nearby object uses a texture that has a name that resembles something (i.e., I'd be checking to see if, say, a campfire object uses a texture with *fire* in the name, or *flame*, or ... etc.).
- I don't know if it's possible to have the object's flame always pointing towards the sky (as I intend to have this object holdable by someone, as though a match, with the flame rotating to always point upwards).
Any ideas?


can't check on the textures name, but you can certainly use a sensor to find out the names of close objects. I'd assume most would have some variant of flame or fire in their title.
_____________________
Keilaron Tomba
Free quality scripting
Join date: 10 Feb 2005
Posts: 57
02-18-2005 15:22
Oh, of course! Much simpler.
Thanks :)
_____________________
post_count++;