RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
01-03-2005 17:56
I have an event called the Giant Snail Race and though we can set the land and the track to no fly if someone steps off the property they can fly again. And that happens on accident sometimes but if thiers a way to make it so when the shell is on they can't fly we could let the spectators fly. and not disrupt the sim as much or require the sim owner to be there for the race.
Also I'm trying to speed up the get ready to race processes for newbies is there a way to auto back up an avatar. before they put on the snail av,I doubt it. I force everyone to use the same shape avatar to avoid having longest legs winning the race.
And also wonderd is thier a way to set there preferences to not see avatar in mouse view and have always run to on . Also the always run has to be able to shut off if they fall off a cliff and need to normal walk up the hill. so it cant be permanently on. just on to start.
Well thats a lot of different stuff I know, but figured i'd just make one post if you can answer any one of these please do.
|
Jediborg Wishbringer
Second Life Resident
Join date: 15 Nov 2004
Posts: 20
|
01-04-2005 01:52
hmmm... i actually own a copy of one of your infamous snails! im sure if you used an llsetforce() and specify a negative direction on the z-axis, it should be enough to prevent the avitar wearing it from flying... as far as the other stuff goes..... hmmm, to late to think about it
|
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
|
01-04-2005 05:24
couldn't some one counter the negative force by attaching a postive force object? if the case, then probable the only way to check if they are flying, is to get the state of animation check if it's one of the states used while flying, And if they are disquolify them. or could just make the snells cars... if they were cars. With could remove the speed and fly problem. You could also rig the object to listen for a command. Such as racer get ready to race <start pos> to set the race right wher they need to be. ANd that also mean you could lock the controls of the racer till they herd the command "go!"
|
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
|
01-04-2005 08:38
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); } } }
that should do it. Doesn't actually keep them from hitting fly of course, but it holds them on the ground.
|
Issarlk Chatnoir
Cross L. apologist.
Join date: 3 Oct 2004
Posts: 424
|
01-04-2005 08:49
From: Rickard Roentgen that should do it. Doesn't actually keep them from hitting fly of course, but it holds them on the ground.
Putting a timer longer than one tenth of a second would do it too. No offense meant, it seems "0.1" is what people put in timer values by default ;_; that must be lagarific.
_____________________
Vincit omnia Chaos From: Flugelhorn McHenry Anyway, ignore me, just listen to the cow
|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
01-04-2005 10:33
thank you Rickard Roentgen That's a great piece of code there, that will really make this go a lot smoother. And ya thought about the vehical thing but unles it was a flying vehical na ... These things are well just wouldn't look as funny. the way they waddle when using auto run would be lost along with the cute manerisms you can't get from a car. Ok 1 down doing great your checks in the mail Rickard Roentgen. 
|
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
|
01-04-2005 13:49
From: Issarlk Chatnoir Putting a timer longer than one tenth of a second would do it too. No offense meant, it seems "0.1" is what people put in timer values by default ;_; that must be lagarific. putting a timer value less than 0.1 allows someone to use the key repeat and fly button to fly anyway. And contrary to popular belief 0.1 timers aren't very hard on sims. oh if you had say 20 scripts per av running 0.1 timers there might be a noticeable effect but it still wouldn't be sim crippling. experiment with larger values if you like though. if the results are satisfactory by all means save the sims  .
|