|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
08-30-2008 01:52
Hey pholks...
I have this follower script that works pretty well. It's in a sphere that's supposed to follow the AV - which it does when I'm walking/running/flying. But - when I play an animation (a dance) that moves the AV out of the spherer, the follower doesn't react, means it stays in place...
Is the movement that's built into an animation not considered movement? Is the movement only on the client-side (like llTargetOmega?).
Thanks for the hints!
|
|
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
|
08-30-2008 02:23
Yeah, animation movement isn't actual movement, in the case of poseballs they are literally linked to it so they can't move anyway. However you can see a good example of this in any packed dance club, if animated dances with movement were real there'd be people colliding with one another and that just doesn't happen unless they are actually walking.
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
08-30-2008 02:47
You can see what's going on, by using my agent visualizer script. Simply install this in a disposable prim... and you'll be able to see where your agent is, it's size, rotation, and general nature. Then simply run a dance animation, and watch your follower stick-by your agent.
// AGENT Visualizer - By: Winter Ventura // Permission is granted to fold, spindle, mutilate, slice, dice, and julianne. // Use them together, Use them in peace.
init() { llSetObjectName(llKey2Name(llGetOwner()) + "'s Agent Stand-in"); llSetPrimitiveParams([ PRIM_COLOR, ALL_SIDES, <0,0,0>, .25, PRIM_PHANTOM, TRUE, PRIM_TYPE, PRIM_TYPE_SPHERE, 0, <0.0, 1.0, 0.0>, 0.0, <0.0, 0.0, 0.0>, <0.0, 1.0, 0.0>, PRIM_TEXTURE, ALL_SIDES, "769681c6-9064-ab0f-e416-6a4eecc59e6a", <1,1,0>, <0,0,0>, 0.00, 25, ALL_SIDES, 0.05 // PRIM_GLOW ]); llSensorRepeat("", llGetOwner(), AGENT, 96, PI, 0.1); }
default { state_entry() { init(); } on_rez(integer start_param) { init(); } changed (integer change) { if (change & CHANGED_OWNER) init(); }
sensor(integer num_detected) { llSetPrimitiveParams([ PRIM_POSITION, llDetectedPos(0), PRIM_ROTATION, llDetectedRot(0), PRIM_SIZE, llGetAgentSize(llGetOwner()) ]); } }
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
08-30-2008 03:46
Thanks guys - that clarifies a lot 
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
08-30-2008 08:19
From: Winter Ventura You can see what's going on, by using my agent visualizer script. Or, even more easily, by watching where your nametag continues to hover. 
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
08-30-2008 15:02
From: Deanna Trollop Or, even more easily, by watching where your nametag continues to hover.  Assuming you have nametags enabled. Assuming you don't move your camera in such a way that the nametag moves away from the agent.
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|