Bobby Dayton
Test Pilot for Airfix
Join date: 15 Nov 2003
Posts: 206
|
09-21-2004 07:07
I have seen a script that can be used with one of the looping dance animations that, when a command is issued, offers a facing partner to be animated by the said dance script. He/she accepts the offer and both av's dance merilly away in sync together. I would like to try something like that myself and possibly take it a few steps (no pun intended) further. However I am not sure how to start by offering to animate the other person. Can somebody point me in the right direction possible with a bit of an example or two.
I am by no means a scripter, but I can usually follow a listing with a bit of head scratching. I have managed to modify the visitor counter to do more of what I want for example. I seem to struggle when starting something like this from scratch. My programming days in the distant past were confined to Basic, Forth and a bit of assembly language. LSL still scares me a bit.
|
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
|
Re: A little help with a dance script
09-21-2004 07:39
From: someone Originally posted by Bobby Dayton My programming days in the distant past were confined to Basic, Forth and a bit of assembly language. LSL still scares me a bit. If you could handle the Reverse Polish expression evaluation of Forth, LSL should be a piece of cake. And if you've ever written an interrupt handler in assembly language, think of LSL's event-driven architecture as having all your code running in non-preemptible interrupt handlers. But to address your original question, you basically need a 2nd script in your object that requests permission to animate the other AV, and then invokes llStartAnimation() when the permission is granted. Use llMessageLinked() to tell the 2nd script who/what/when to animate. - Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
|