Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

New scripting EVENTS, such as fly_start and mlook_start

Talan Mackenzie
The Rocketeer
Join date: 15 Aug 2004
Posts: 14
05-21-2005 11:07
Considering proposing the following, would love some feedback:

I'd really like to see new scripting events that fire when avatars do things. Specifically, many of the conditions that llGetAgentInfo can check. As it stands now, if you want to have fairy dust drop from your wings, or your jetback go *woosh* when flying, you have to set a CPU intensive TimerEvent that compulsively checks the llGetAgentInfo to see if you're flying. ("Is he flying now? How about now? Now? NOW?";) Not only is this bad coding, it's also imprecise (unless that timer event is set to intervals of 0.1 seconds, which is EXTREMELY bad coding).
What's really frustrating is that we can see that one of these events already exists. llGetAgentInfo is the only way to check if the avatar holding your item is in Mouselook, YET built-in animations like hold_r_rifle immediately update when the avatar goes into mouselook with aim_r_rifle. So something like mlook_start and mlook_end exist and are working. -We just don't have access to them.-

Whadya think, people? I really want to rewrite my jetpack and longbow to not use timers anymore, and that doesn't even scratch the surface of the uses for instant events for walking, sitting, crouching, TYPING (how about non-timer popup keyboards, eh?)
Daniel Luchador
Registered User
Join date: 5 Jun 2004
Posts: 93
05-23-2005 19:04
I agree, they would be useful events.