|
Najmah Handayani
(aka Toy LaFollette)
Join date: 26 Nov 2006
Posts: 154
|
06-10-2007 20:10
Ive been all day trying to write a script that has collision with a phantom script send a msg to another prim to turn on a floating text. Then wait say 5 mins and reset the floating text to "" and Im really having tons of trouble. Is this possible to do? Any help is appreciated, Im a new scripter !!! 
_____________________
"We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors ... but they all have to learn to live in the same box." ___________________________________ Textures by Naj
|
|
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
|
06-10-2007 20:51
llVolumeDetect, and llSetTimerEvent()... when you have a collision set the timer event for 5 minutes..
|
|
Najmah Handayani
(aka Toy LaFollette)
Join date: 26 Nov 2006
Posts: 154
|
06-10-2007 20:53
thank you, I will give it another go in the morning 
_____________________
"We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors ... but they all have to learn to live in the same box." ___________________________________ Textures by Naj
|
|
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
|
06-10-2007 22:36
Remember not to turn the prim phantom manually with the edit tools; leave it un-phantom, and once you run the script the llVolumeDetect function makes it behave as if it were phantom but with the added VolumeDetect magic. My understanding is if you make the prim phantom in the usual way, llVolumeDetect will not work properly.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
06-11-2007 11:13
I haven't had a problem with already-phantom objects failing to work with llVolumeDetect(TRUE), but about half the time I manage to forget that collision() events are *not* generated, just collision_start() and collision_end() -- just in case anybody else has selective amnesia about that.
|
|
Najmah Handayani
(aka Toy LaFollette)
Join date: 26 Nov 2006
Posts: 154
|
06-11-2007 14:22
thanx for the advice everyone, I got it finished today and works good 
_____________________
"We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors ... but they all have to learn to live in the same box." ___________________________________ Textures by Naj
|