UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Does anyone know how to use PlayerAnimScriptEvent()?

broken avatar :(
Created 8 years ago
by alaurenc9
0 Members and 1 Guest are viewing this topic.
1,772 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2012
Last active: 8 months ago
Posts
577
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
My preferred name is "xSanchez78".
Check me out here: www.steamcommunity.com/id/xSanchez78
×
alaurenc9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
alaurenc9's Contact & Social LinksxSanchez78xSanchez78xSanchez78xSanchez78xSanchez78xSanchez78
read the title
broken avatar :(
×
broken avatar :(
Location: nlNederland
Date Registered: 14 August 2013
Last active: 7 years ago
Posts
50
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Personal Quote
Wassaaap
Signature
×
WhiteDevil's Groups
WhiteDevil's Contact & Social Links
I have not used it before but i took a look at it..

Call of Duty World at War\raw\maps\mak.gsc
Contains "playeranimscriptevent" on line 7964 the following line:
Code Snippet
Plaintext
player playeranimscriptevent( "mak_bomb_stand" );

Call of Duty World at War\raw\mp\playeranim.script
Contains "mak_bomb_stand" on line  2044:
Code Snippet
Plaintext
event mak_bomb_stand
{
both p_bomb_stand_loop
}

p_bomb_stand_loop is a xanim in the raw/xanim folder


So think if you want use this, you hav to add the xanim name with the event name to playeranim.script include that in your mod. And in you gsc you can play the animation with:
Code Snippet
Plaintext
player playeranimscriptevent( EVENTNAME );
Last Edit: November 24, 2015, 04:07:20 pm by WhiteDevil
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2012
Last active: 8 months ago
Posts
577
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
alaurenc9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
alaurenc9's Contact & Social LinksxSanchez78xSanchez78xSanchez78xSanchez78xSanchez78xSanchez78
I have not used it before but i took a look at it..

Call of Duty World at War\raw\maps\mak.gsc
Contains "playeranimscriptevent" on line 7964 the following line:
Code Snippet
Plaintext
player playeranimscriptevent( "mak_bomb_stand" );

Call of Duty World at War\raw\mp\playeranim.script
Contains "mak_bomb_stand" on line  2044:
Code Snippet
Plaintext
event mak_bomb_stand
{
both p_bomb_stand_loop
}

p_bomb_stand_loop is a xanim in the raw/xanim folder


So think if you want use this, you hav to add the xanim name with the event name to playeranim.script include that in your mod. And in you gsc you can play the animation with:
Code Snippet
Plaintext
player playeranimscriptevent( EVENTNAME );

yes i know how playeranim.script works. ive got to call it as a rawfile and add all animaitons i put in it to the proper place in multiplayer.atr but can i use these in loops using waittill( "done" ); like mak.gsc has? and can i recall it with a different event and make it override the current event anim? and can i play torso only anims and have the original event anim still playing on the legs?
broken avatar :(
×
broken avatar :(
Location: nlNederland
Date Registered: 14 August 2013
Last active: 7 years ago
Posts
50
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Personal Quote
Wassaaap
×
WhiteDevil's Groups
WhiteDevil's Contact & Social Links
yes i know how playeranim.script works. ive got to call it as a rawfile and add all animaitons i put in it to the proper place in multiplayer.atr but can i use these in loops using waittill( "done" ); like mak.gsc has? and can i recall it with a different event and make it override the current event anim? and can i play torso only anims and have the original event anim still playing on the legs?

I have no idea, you should really try that out :p

 
Loading ...