Author Topic: Get player animtion or shoot or LMB press  (Read 2658 times)

ZX_Lost_Soul

  • Newbie
  • *
  • Posts: 25
  • Karma: +1/-1
    • View Profile
Get player animtion or shoot or LMB press
« on: December 18, 2010, 11: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)
My English is very poor, please try to understand me)

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Get player animtion or shoot or LMB press
« Reply #1 on: December 20, 2010, 12:14:25 am »
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

ZX_Lost_Soul

  • Newbie
  • *
  • Posts: 25
  • Karma: +1/-1
    • View Profile
Re: Get player animtion or shoot or LMB press
« Reply #2 on: December 25, 2010, 07:17:44 am »
it's possible to set the anim tho
Sorry, I don't understand. What is "tho"?
My English is very poor, please try to understand me)

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Get player animtion or shoot or LMB press
« Reply #3 on: December 25, 2010, 04:38:20 pm »
You can set the animation to something else using Player.SetAnim()
But the rest you asked is not (yet) possible.

ZX_Lost_Soul

  • Newbie
  • *
  • Posts: 25
  • Karma: +1/-1
    • View Profile
Re: Get player animtion or shoot or LMB press
« Reply #4 on: January 12, 2011, 01:03:25 pm »
You can set the animation to something else using Player.SetAnim()
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.
My English is very poor, please try to understand me)

 

© Liberty Unleashed Team.