These forums are CLOSED. Please visit the new forums HERE
Enhanced Jump & Fly in No-Fly Examples? |
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
03-24-2008 10:46
I'll admit, I'm lookin' for a sort of 'freebie' here...searched through the library to no avail. I'm looking for example scripts of Enhanced-Jump scripts or Fly-in-No-Fly scripts that I can take apart and apply to a scripting project of my own. I'm sure I can figure it on my own...but if anyone can point me to a working example it'd be great...
_____________________
--AeonVox--
Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music. |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
03-24-2008 11:30
Don't really have a working example handy, but in general I'll say any kind of normal scripted avatar movement or flight-assist type functionality should work as long as it is made to turn on using some logic other than llGetAgentInfo() & AGENT_FLYING.
OTOH, you can just enable "View Admin Options" in the "Advanced" menu (CTRL-ALT-D if you don't see it) to fly in no-fly areas, so no script is even really necessary if you'd rather not, "play by the rules." |
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
03-24-2008 12:04
Hewee...I'm not trying to circumvent rules, but to create a script that allows limited persons the ability to fly in a no-fly zone.
Additionally, the jump-enhancer need is completely separate...so it's both a jump enhancer and a fly-in-no-fly...working it out slowly...testing things here and there...but any prior knowledge would help me immensely as it's not an area of scripting I delve into often. _____________________
--AeonVox--
Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music. |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
03-24-2008 15:45
Here's what I would probably start a jump enhancement with. You'll have to add your own logic if you want to turn it off while it is being worn. You'll also probably want to play around with different SPEED_BOOST values.
(This hasn't been compiled or tested. It may need minor syntactical corrections.) CODE
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
03-24-2008 17:47
A script really isn't needed to fly in a no-fly zone. Just enable "View Admin Options" and you'll be able to fly as you normally would.
_____________________
![]() ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura |
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
03-24-2008 19:25
Thanks for the starter script there Hewee! That'll definitely get me going on the right track. I'll try to post the finished here for mutual benefit.
Winter...the goal isn't to get SL to allow flight...but rather to allow persons who have selected one option over another to fly within the no-fly region... ...say, for instance...an avatar can choose: a)swim b)run c)fly ...if they chose C, then I'd like to 'turn on' flying for them. The only way to do so is to make it inherent in the script. (by the way, the other options aren't really swim or run...just an example...one of them, however, is enhanced-jump...which was my need for that scripting.) _____________________
--AeonVox--
Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music. |
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
03-24-2008 19:52
The only important part in a script to make it fly in a no-fly zone is adding llTakeControls. Before someone asks, it isn't a bug, it's more of a "loophole". There had to be a way for vehicles to get out of no-fly zones, instead of being stuck in mid-air and the owners and passengers having to get out and "take" the vehicle back. That would have been a major pain................
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
03-25-2008 11:29
Err...are you confusing no-fly with no-script? All no-fly zones do is keep you from putting your avatar in fly mode (except for the View Admin Options workaround). It has NO effect on scripted movement whatsoever. You don't even need llTakeControls() if you'd like an attachment to, say, pull you around by the ear in a way that's not under your direct control.
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
03-25-2008 17:33
Err...are you confusing no-fly with no-script? Yep that is exactly what I did. _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |