|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
06-14-2006 14:37
I'm trying to set up a special snail shell that will yell "touch me to donate money care of this snail" when the person wearing it hits a button. like maybe the jump button since thats disabled in the snails. The snails can't jump. or the 5 button. or any button really thats not a movement button. maybe I'll connect a sound bite to it too. anyway heres the script that makes it no fly integer flying = FALSE;
default { state_entry() { if (llGetAttached() != 0) { llSetTimerEvent(0.1); llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); } } attach(key id) { if (id != NULL_KEY) { flying = FALSE; llSetTimerEvent(0.1); llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); } else { llSetTimerEvent(0.0); llReleaseControls(); } } run_time_permissions(integer perms) { if ((perms & PERMISSION_TAKE_CONTROLS) == PERMISSION_TAKE_CONTROLS) { //Comment out llTakeControls to allow jumping. llTakeControls(CONTROL_UP, TRUE, FALSE); } } timer() { if ((llGetAgentInfo(llGetOwner()) & AGENT_FLYING) == AGENT_FLYING) { flying = TRUE; llSetForce(<0.0, 0.0, -200.0> * llGetMass(), FALSE); } else if (flying) { llSetForce(ZERO_VECTOR, FALSE); } } }
I'm going to put a touch giver in the sign on the shell that gives out the collection thing have that figured out just need a way to alert the spectators along the cross country route
|
|
Thraxis Epsilon
Registered User
Join date: 31 Aug 2005
Posts: 211
|
06-14-2006 14:56
control(key id, integer held, integer change) { if (held & CONTROL_UP) { llShout(0,"Touch me to donate money care of this snail!"); } }
|
|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
06-14-2006 16:48
thank you
|
|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
06-15-2006 21:05
ok tried this out finally It lets loose spam how do i keep it from repeating itself 10 times per tap. Is that controled somehow with the integer part of that funtion? control(key id, integer held, integer change) { if (held & change & CONTROL_UP) { llShout(0,"Touch me to donate money care of this snail!"); } }
this works thanks again
|
|
Thraxis Epsilon
Registered User
Join date: 31 Aug 2005
Posts: 211
|
06-15-2006 21:24
control(key id, integer held, integer change) { if (held & change & CONTROL_UP) { llShout(0,"Touch me to donate money care of this snail!"  ; } }
|