0
eXistenZ34

Animation for human entity

Recommended Posts

drive to a coordinate, it is in the first FR

name is "Hunter" & "Escaper"

da43f5117110694.jpg d0441d117110715.jpg a3deee117110730.jpg 72698a117110748.jpg

 

also use, by Yoshid in his "Car Driver and Taxi Mod"

Share this post


Link to post
Share on other sites
MetalCat

 

- ply:SetControlStyle(enums.ControlStyle.LOCKED)

- ply:SetControlStyle(enums.ControlStyle.FREE)

only for the PLAYER, not necessarily for another PNG

 

jey=game.entitywrapper:GetEntityByName("Joe")

DelayBuffer:Insert(function(l_1_0)jey:AnimPlay("sc_man_smoke_in", false)end,{l_1_0},500,1,false)

DelayBuffer:Insert(function(l_1_0)jey:AnimPlay("sc_man_smoke_stat_b", false)end,{l_1_0},18000,1,false)

DelayBuffer:Insert(function(l_1_0)jey:AnimPlay("sc_man_smoke_stat_c", false)end,{l_1_0},22000,1,false)

DelayBuffer:Insert(function(l_1_0)jey:AnimPlay("sc_man_smoke_stat_d", false)end,{l_1_0},29000,1,false)

DelayBuffer:Insert(function(l_1_0)jey:AnimPlay("sc_man_smoke_out", false)end,{l_1_0},33000,1,false)

 

14d07e164704905.jpg

 

Script 3 clic is better in first page

 

Hooray! Scripts for anims! :woohoo:

Thank you very much! :)

Share this post


Link to post
Share on other sites

When I play some anims, like reading magazine or cleaning snow, I haven't got magazine and a shovel.

I have a letter, when I play anim "Sending a letter". But I haven't got other things with other anims.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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},[b]500[/b],1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_b", false)end,{l_1_0},[b]18000[/b],1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_c", false)end,{l_1_0},[b]22000[/b],1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_d", false)end,{l_1_0},[b]29000[/b],1,false)
DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_out", false)end,{l_1_0},[b]33000[/b],1,false)
DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},[b]40000[/b],1,false)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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

 

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

Share this post


Link to post
Share on other sites

Thanks for explanation, mates. ;)

Would you mind, if I ask you for some help next time? :)

 

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

i cant use without injector ?

i use injector and my game crash if i activate script

Share this post


Link to post
Share on other sites

eXistenZ34

 

?? ??? ??? ??? ?? ??? ??? ? ...:SetControlStyle(enums.ControlStyle.LOCKED)

??? ? ??? ????? ??? ???? ?? ??? ?? ??? ?? LOCKED ?? ??? ?????

 

? ??? ?? ??? ??? ??? ??? ?? ??? ????????

??? ????? ...:SetControlStyle(enums.ControlStyle.FREE)

? ??? ? ??? ...:SetControlStyle(0)

enums.ControlStyle.FREE ??? 0

Share this post


Link to post
Share on other sites

what exactly animation, because some animation are used only in certain place or in Winter.

 

Ex: "sc_drunk_dancer" only in FR JA Cathouse.

 

but I have the solution, as my file sky ("freeride.sds").

but it will be long, there are over 3000 different file animation in the game.

yes I really written three miles

 

"sc_drunk_dancer" in Chinesse restaurant FR M2

8eecb3165869924.jpg 7c1dad165869939.jpg 6df845165869966.jpg

 

45be36165870113.jpg a2febc165870150.jpg abf64c165870172.jpg

Share this post


Link to post
Share on other sites
Your link for Injector v6 is broken. Could you reupload it ?

Megaupload and deposit is Ok

 

 

zahar999

me I can dance anywhere ;)

and I have also seen use the animation of the prison (in the yard, shower etc...)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0