Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Animation for human entity
#21
Thank You Very Much!
#22
Great job existenz
#23
Hi Tommy Mafioso
Look

For FR M2 with injector
[video]http://www.youtube.com/watch?v=9hVH-gIQ6sQ[/video]

For Car in FR JA just one but is se same "StreamMapLine" for Tony
in vid?o Vito and PNG walk alone.

[video]http://www.youtube.com/watch?v=B9v-QF-0oVs[/video]
#24
Very nice find.

Does this also work with human entities?
#25
Yes
- Walk and climb in the car
- Walk towards a coordinated
- Run towards a coordinated
for player & PNG
#26
What about PNG drive to a coordinate?

This is an amazing find man.

Great job.
#27
drive to a coordinate, it is in the first FR
name is "Hunter" & "Escaper"
[Image: da43f5117110694.jpg] [Image: d0441d117110715.jpg] [Image: a3deee117110730.jpg] [Image: 72698a117110748.jpg]

also use, by Yoshid in his "Car Driver and Taxi Mod"
#28
eXistenZ34" post=2135":3or0uxle Wrote:MetalCat

- ply:SetControlStyle(enums.ControlStyle.LOCKED)
- ply:SetControlStyle(enums.ControlStyle.FREE)
only for the PLAYER, not necessarily for another PNG

Quote: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)

[Image: 14d07e164704905.jpg]

Script 3 clic is better in first page

Hooray! Scripts for anims! :woohoo:
Thank you very much! Smile
#29
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.
#30
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
#31
I just made a video what shows some animations (in this video this two what is on first page)
[video]http://www.youtube.com/watch?v=mEWGAAwZwh0[/video]
#32
eXistenZ34" post=2174":15s8w2qx Wrote: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?

Code:
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)
#33
The numbers indicate the delay length between animations.

For example this animation is 18 seconds long

Code:
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.

Code:
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.
#34
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

Quote: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
#35
Vito makes a smoke break
Version 3 Clic (you can move between the click)


[video]http://www.youtube.com/watch?v=isNq3dgygnA[/video]
#36
Tommy Mafioso" post=2187":1eagxqo7 Wrote:The numbers indicate the delay length between animations.

For example this animation is 18 seconds long

Code:
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.

Code:
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.


eXistenZ34" post=2188":1eagxqo7 Wrote: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?
#37
Why other anims are hang for 5-10 seconds, when I play them?

I don't know
#38
orangebrains" post=2193":2eikcxnh Wrote:Why other anims are hang for 5-10 seconds, when I play them?
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.
#39
thank you tommy sometimes I don't understand what I'm told.

I'm not very good in English, I often use a translator.
#40
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.


Forum Jump:


Users browsing this thread: 1 Guest(s)