Jump to content
  • 0
Sign in to follow this  
Sashiku Kas

Good default hold script?

Question

  • 0

Not really sure exactly what you are saying, if you do not use an AO & you hold something the default anim would be used, the same for all the other default anims.

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

Not really sure exactly what you are saying, if you do not use an AO & you hold something the default anim would be used, the same for all the other default anims.

Share this post


Link to post
Share on other sites
  • 0

The animation is the important thing.  After that you just need to put it in a decent AO.  There are really only two types of animation script - ones that 'do this' and ones that 'do this and keep checking', the latter being AOs.  Then again, if it's a default animation you don't need a script at all.

Share this post


Link to post
Share on other sites
  • 0

Well you see I want to constantly hold a knapsack that I made. But every time i Teleport it stops animating/ It also stops animating randomly. I am not using an AO. so it cant be that. So what should I do then? :/

Share this post


Link to post
Share on other sites
  • 0

Thats the part of your original post that I find slightly confusing, a script doesn`t animate exactly, it tells an animation to run. If your avatar does anything, sit, walk, fly, hold something etc. it will automatically do that action using the default animation unless there is a script telling another animation to override that. So I don`t understand the idea of using a script or anything else to do something that is "default".

Share this post


Link to post
Share on other sites
  • 0

Here is the script : default

{

state_entry()

{

llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION);

}

 

run_time_permissions(integer parm)

{

if(parm == PERMISSION_TRIGGER_ANIMATION)

{

llStartAnimation("hold_R_handgun");

}

}

 

on_rez(integer st)

{

llResetScript();

}

 

attach(key id)

{

llStopAnimation("hold_R_handgun");

}

 

}

 

*Sorry it took so long to respond. x_x I'm one busy lil girl. :P*

Share this post


Link to post
Share on other sites
  • 0

I assume you want this for a worn object, and don't want to replace the AO in the wearer.

I'm more familiar with sitting animation scripts, but I do have freebie guitars I made long ago that have a similar problem.  Given all the guns we see in SL, I'm sure there's an appropriate solution for this, though i don't know exactly what it is.  I do know how AOs work, having mucked with ZHAO-II a bit.  Hopefully this wouldn't need to poll as fast as a good AO needs.

I'll probably look into this some time this week, but hopefully someone will pop up with a simple answer before then.  I'm confident there's a good solution.  IIRC, there are public gun scripts somewhere, perhaps in the scripting library.

I believe that the only difference between your needs and say, a teddy bear script, would be that you're using an animation with priority 2.

Share this post


Link to post
Share on other sites
  • 0
:) Yea, I've been looking all over, and I don't know enough about scripting to edit something like this. I can edit some things but nothing like this. I may eventually just make a new anim :/ I want it to keep animating even if i TP, or walk around without an AO on.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...