Page 1 of 1

Make those damn warriors WALK!

Posted: Thu Jan 25, 2024 3:23 pm
by erfiaschi
I'm sorry, I'm new and I've probably posted in the wrong section.
Trust me, I've been looking a lot but still no answer.
I gotta make these characters walk instead of run all the time. Including the player.
It's so unbelievable there's no always run unlock option.
How come we went to the moon but cannot make some damn video game characters simply walk?
I'm begging you for help, at this point.
Thank you very much.
Contributions truly appreciated!

Re: Make those damn warriors WALK!

Posted: Thu Jan 25, 2024 3:56 pm
by sektor2111
If you understand UScript look at code concerning "state Wandering" from whatever Pawn (Bot, ScriptedPawn, etc.), pawns wandering are not exactly running at all - it comes in stage something like "WalkingSpeed" if memory doesn't cheat me...

This snippet is from Bot code - state wandering

Code: Select all

...
Moving:
	Enable('HitWall');
	MoveTo(Destination, WalkingSpeed);
Destination is a vector, a Place in 3D space and this is a native function with two parameters: Location and Moving Speed - in this case was used WalkingSpeed - usually this data is under "1.000000" as number. Technically Bot has 0.350000, which means it will use 0.35×GroundSpeed for walking while is wandering.

Code: Select all

...
native(500) final latent function MoveTo( vector NewDestination, optional float speed);
...
Latent functions are used in "states". Shortly for making a Pawn to walk, is needed a code which should take in account some data: Destination, Animations, Speed and to not forget the reaction toward a sudden threat.

Re: Make those damn warriors WALK!

Posted: Thu Jan 25, 2024 5:48 pm
by Barbie
Just hold SHIFT.

Re: Make those damn warriors WALK!

Posted: Fri Jan 26, 2024 3:11 am
by sektor2111
Barbie wrote: Thu Jan 25, 2024 5:48 pm Just hold SHIFT.
Tell this to a Bot.

Re: Make those damn warriors WALK!

Posted: Fri Jan 26, 2024 10:56 am
by Barbie
sektor2111 wrote: Fri Jan 26, 2024 3:11 am
Barbie wrote: Thu Jan 25, 2024 5:48 pm Just hold SHIFT.
Tell this to a Bot.
Hey Bot, just hold SHIFT!