|
Roobus Newt
Registered User
Join date: 9 Oct 2006
Posts: 40
|
11-13-2007 14:58
Hello. I have built a cave and would like to have a big boulder come rolling through it once an avatar gets to that point in the cave. Think Raiders of the Lost Ark. I am about as dumb as they come when it comes to scripting... so be gentle. Could someone point me in the right direction. Much appreciated.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-13-2007 22:33
make sculpty rock, enable physics, crush enemies win =)
seriously, you want a rock to start rolling when they hit a certain point?
I suggest, a narrow sensor (or phantom collision plate) that triggers another object to rez said big rolling rock, and then gives it a little push
big rolling rock can have a timer with llDie in it so you don't have lots of random big rolling rocks lying around
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
11-14-2007 02:26
agreed Void... I'd personally go with the phantom collision prim (dont forget to turn on volume detect), and definately an llDie() to kill off boulders after a while, so new visitors can visit and get the same effect as previous ones.
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
11-14-2007 03:35
Instead of using a script to llDie() the rock set it to temp_rez. It will remove itself after a minute or two.
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
Since you are new, Roobus...
11-14-2007 12:13
This is similar to a script that detects an avatar at the door, and then opens the door. Or detects an avatar, and then gives them a notecard. Look for one of those in a Freebie box of scripts, or in the Forums or the Wikis. Call this something like the Detector. Put this script in some object such as an invisible box, or a small rock near where you want to set of the avalanche.
Create a Rock. it should either be Physical, and just roll on its own, or it should be a smart rock, and detect the avatar, and roll over him or her. I suggest that it just stay there until the avatars leave, and then llDie().
Put the big rock into the Detector.
In the Detector script, where it opens the door or whatever, change it to llRezObject() the big rock.
Take a stab at taht, and feel free to ask followup questions.
lee
|