- This topic has 149 replies, 32 voices, and was last updated 12 years, 5 months ago by .
Animation for human entity
I just made a video what shows some animations (in this video this two what is on first page)
I have not tested everything,
but what I can tell you it’s always start with “in” and end with “out” when possible
sc_newspaper_in
…
sc_newspaper_out
I have not found all the animation
I see. Yes, I know about “in” and “out”. And some played anims, are freezing and unfreezing. E.g. “shovel” – Vito begin to clean snow, than anim freezes for 10 seconds and than anim unfreezes, and goes on.
And one more question:
What these numbers mean?
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_in", false)end,{l_1_0},500,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_b", false)end,{l_1_0},18000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_c", false)end,{l_1_0},22000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_d", false)end,{l_1_0},29000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_out", false)end,{l_1_0},33000,1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},40000,1,false)
The numbers indicate the delay length between animations.
For example this animation is 18 seconds long
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_b", false)end,{l_1_0},18000,1,false
After 22 seconds the next animation will play.
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_c", false)end,{l_1_0},22000,1,false)
That animation is 22 seconds long.
These are delay in milliseconds
This function allows you to execute a command after a certain time
DelayBuffer:Insert(function(l_1_0)….end,{l_1_0},22000,1,false)
and the “1” for repeat the commande
in fisrt
ply=game.game:GetActivePlayer()
ply:SetControlStyle(enums.ControlStyle.LOCKED)
after 500 milliseconds active the command
ply:AnimPlay(“sc_man_smoke_in”, false)
after 18000 milliseconds active the command
ply:AnimPlay(“sc_man_smoke_stat_b”, false)
after 22000 milliseconds active the command
ply:AnimPlay(“sc_man_smoke_stat_c”, false)
after 29000 milliseconds active the command
ply:AnimPlay(“sc_man_smoke_stat_d”, false)
after 33000 milliseconds active the command
ply:AnimPlay(“sc_man_smoke_out”, false)
after 40000 milliseconds active the command
ply:SetControlStyle(enums.ControlStyle.FREE)
Tommy, you were faster
Vito makes a smoke break
Version 3 Clic (you can move between the click)
The numbers indicate the delay length between animations.
For example this animation is 18 seconds long
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_b", false)end,{l_1_0},18000,1,false
After 18 seconds the next animation will play.
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_c", false)end,{l_1_0},22000,1,false)
That animation is 22 seconds long.
These are delay in milliseconds
This function allows you to execute a command after a certain time
DelayBuffer:Insert(function(l_1_0)….end,{l_1_0},22000,1,false)
and the “1” for repeat the commande
Thanks for explanation.
And:
Why other anims are hang for 5-10 seconds, when I play them?
Why other anims are hang for 5-10 seconds, when I play them?
I don’t know
Why other anims are hang for 5-10 seconds’ date=’ when I play them?[/quote’]
The DelayBuffer does not effect the duration of the animation.
It is used to tell the next animation when to start.
You only need to use it with multiple animations.
thank you tommy sometimes I don’t understand what I’m told.
I’m not very good in English, I often use a translator.
No problem man.
I’m not as good as you when it comes to figuring out this LUA stuff but i try to help when i know something.
Thanks for explanation, mates.
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/wink@2x.png 2x” width=”20″ height=”20″>
Would you mind, if I ask you for some help next time?
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>
I’m not very good in English’ date=’ I often use a translator.[/quote’]
Me too. I rely on my knowledge of English language. But sometimes I use a translator.
I tell it to you that you disregard my grammar mistakes.
Hi,i have problem,i copy smoking script to my freeride,but game not activate,
what key on keyboard activate script ?
i dont use injector
and ply i can replace to player ? if i put ply,game cant loading
[img]//i43.tinypic.com/vzipz9.png&key=5cd175f47bf60a40dc1fa25f1c735ad27fb4e880d3acb993a23e5fe843560659[/img]
i cant use without injector ?
i use injector and my game crash if i activate script
Test with injector is v6
http://www.multiupload.com/GMFMRAXMFV
and copy script in F1 or F2 …. Or F12 in the folder “userscript”
- You must be logged in to reply to this topic.
