Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

flight?

Wraith Jensen
I can walk thru walls....
Join date: 8 Aug 2004
Posts: 130
08-10-2004 06:29
I'm trying to figure out whether my Avatar is flying or not, so I can perfect my jet pack.

Does anybody know how to determine whether the avatar is flying, and how to put the avatar in to flight mode through scripting?

Thanks
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
08-10-2004 07:07
Use llGetAgentInfo...

http://www.badgeometry.com/wiki/llGetAgentInfo

CODE

default {
touch_start(integer total_numer) { // when touched, check if agent is flying and say so
if ( llGetAgentInfo(llDetectedKey(0)) & AGENT_FLYING ) llSay(0, "You're flying.");
}
}


I don't know of any way to force an avatar into FLY mode.
_____________________
Wraith Jensen
I can walk thru walls....
Join date: 8 Aug 2004
Posts: 130
08-10-2004 08:12
Thank you!!

That will do exactly what I want!

That's okay, I don't actually need to force the avatar in to fly mode. If I can get the wings to furl when I land, then I don't need to actually change the flying state progromatically.

This is gonna be cool! I can't wait to get my own property so I can start showing off my neato inventions!


Next step... particle effects!
Wraith Jensen
I can walk thru walls....
Join date: 8 Aug 2004
Posts: 130
08-10-2004 22:14
ITWORKSITWORKSITWORKS!!!

IM Me in game and I'll give you a free copy of my jetpack.

Thank you so much!


:D
_____________________