←  Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

Wywołanie animacji

Locked

  • +
  • -
DarkGL's Photo DarkGL 01.01.2010

Jak wywołąć konkretną animację np gracz sobie idzie a ja chcę zmienić animację chodzenia na np skakania :P jak to zrobić
Edited by DarkGL, 01.01.2010 13:40.
Quote

  • +
  • -
mgr inż. Pavulon's Photo mgr inż. Pavulon 01.01.2010

How To: Make a perfect NPC - AlliedModders

entity_set_float(ent,EV_FL_animtime,2.0)
    entity_set_float(ent,EV_FL_framerate,1.0)
    entity_set_int(ent,EV_INT_sequence,0);

Note: Sets the frameRate (framerate for ent), animation time (max time for an animation, and sequence (the actual animation). You do not really need animtime, but I think better safe then sorry.

Quote
Locked