Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

collision_start and land_collision(vector pos)

Bilbo Goodliffe
all around good guy
Join date: 30 Dec 2005
Posts: 22
04-05-2007 09:15
I need help I have a parachute script that i used

CODE

collision_start(integer num_detected) {
llWhisper(0, "landing");
llStopAnimation(gAnimName);
llResetScript();
}


which works when landing on anything but ground


CODE


land_collision(vector pos) {
llWhisper(0, "landing");
llStopAnimation(gAnimName);
llResetScript();
}




this works landing on land but no where else, any ideas on combining them?

thanks
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
04-05-2007 09:44
How about this?

CODE

Landed()
{
llWhisper(0, "landing");
llStopAnimation(gAnimName);
llResetScript();
}

default
{
collision_start(integer num_detected)
{
Landed();
}

land_collision(vector pos)
{
Landed();
}
}
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Bilbo Goodliffe
all around good guy
Join date: 30 Dec 2005
Posts: 22
thanks this workes
04-06-2007 09:42
CODE

collision_start(integer num_detected)
{
state Landed;
}

land_collision(vector pos)
{
state Landed;
}
}

state Landed {
state_entry(){