Viewing 15 posts - 31 through 45 (of 150 total)

Animation for human entity

149 replies
14 years, 3 months ago
#8965

I just made a video what shows some animations (in this video this two what is on first page)

14 years, 3 months ago
#8967

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)
14 years, 3 months ago
#8969

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.

14 years, 3 months ago
#8970

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

14 years, 3 months ago
#8972

Vito makes a smoke break

Version 3 Clic (you can move between the click)

 

 

14 years, 3 months ago
#8975

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?

14 years, 3 months ago
#8976

Why other anims are hang for 5-10 seconds, when I play them?

 

I don’t know

14 years, 3 months ago
#8979

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.

14 years, 3 months ago
#8980

thank you tommy sometimes I don’t understand what I’m told.

 

I’m not very good in English, I often use a translator.

14 years, 3 months ago
#8981

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.

14 years, 3 months ago
#8988

Thanks for explanation, mates. <img decoding=” 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? <img decoding=” 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.

14 years, 3 months ago
#9000

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

14 years, 3 months ago
#9001

[img]//i43.tinypic.com/vzipz9.png&key=5cd175f47bf60a40dc1fa25f1c735ad27fb4e880d3acb993a23e5fe843560659[/img]

14 years, 3 months ago
#9003

i cant use without injector ?

i use injector and my game crash if i activate script

Viewing 15 posts - 31 through 45 (of 150 total)
  • You must be logged in to reply to this topic.