Need help?
Create a topic in the appropriate section
Don't write everything in the chat!Take a look at the marketplace
There you can buy
everything related to game serversDon't want a ban?
Please read our rules
Don't disturb the order!Sell or buy?
Use services of the guarantor
We will make your deal safe



- 0
-
Our picks
Мне нужно для мутанта сделать функцию которая будет срабатывать когда он юзает определенную анимацию
Ниже кусок кода, вопрос в том, что мне указать вместо "Attack1_ANIM"? Потому что "Attack1_ANIM" не работает, а мне нужно чтобы при атаке срабатывали 2 функции "OnScriptClientEvent" и "OnScriptServerEvent"
override void RegisterAnimEvents()
{
super.RegisterAnimEvents();
if ( GetGame().IsClient())
{
RegisterAnimationEvent("Attack1_ANIM", "OnScriptClientEvent");
}
if ( GetGame().IsServer())
{
RegisterAnimationEvent("Attack1_ANIM", "OnScriptServerEvent");
}
}
Share this post
Link to post
Share on other sites