Liberty Unleashed

Scripting => Script Help => Topic started by: ZX_Lost_Soul on December 18, 2010, 10:22:36 pm

Title: Get player animtion or shoot or LMB press
Post by: ZX_Lost_Soul on December 18, 2010, 10:22:36 pm
I making a crouch script and I need to make a condition - player stand up...

Tell me please, is it real to make one of that?

1. Set current player animation to variable?
2. Bind a function on left mouse button?
3. Make event on player shoot (NOT shoot at other player, at sky for example)
Title: Re: Get player animtion or shoot or LMB press
Post by: Thijn on December 19, 2010, 11:14:25 pm
At the moment it's not possible to bind a function to any of the mouse buttons, it's possible to set the anim tho
Title: Re: Get player animtion or shoot or LMB press
Post by: ZX_Lost_Soul on December 25, 2010, 06:17:44 am
it's possible to set the anim tho
Sorry, I don't understand. What is "tho"?
Title: Re: Get player animtion or shoot or LMB press
Post by: Thijn on December 25, 2010, 03:38:20 pm
You can set the animation to something else using Player.SetAnim() (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Players/SetAnim)
But the rest you asked is not (yet) possible.
Title: Re: Get player animtion or shoot or LMB press
Post by: ZX_Lost_Soul on January 12, 2011, 12:03:25 pm
You can set the animation to something else using Player.SetAnim() ([url]http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Players/SetAnim[/url])
But the rest you asked is not (yet) possible.

If I set a crouch animation and other after it - player play other amination being crouched.