|
Gareth Qunhua
Registered User
Join date: 11 Apr 2007
Posts: 25
|
08-31-2007 04:44
hi there could someone tell me what should i do to make a particle script trigger on when i make my avatar fly and off when i'm not flying thanks 
|
|
Darko Lednev
Registered User
Join date: 20 Aug 2007
Posts: 31
|
08-31-2007 05:20
Try this (Didn't tested it):
integer isFlying = FALSE;
default { state_entry() { llSetTimerEvent(3.0); } timer() { if (llGetAgentInfo(llGetOwner()) & AGENT_FLYING) { if(isFlying == FALSE) { isFlying = TRUE; // // PARTICLE START TRIGGER HERE // } } else { if(isFlying == TRUE) { isFlying = FALSE; // // PARTICLE STOP TRIGGER HERE // } } } }
_____________________
state_entry() { llListen(SL Forums, "", NULL_KEY, ""  ; }
|