I want a script of point
-
is there any finger pointing script in singleplayer?
-
@marculu find the pose and i'll give you the script.
-
@JohnFromGWN in menyoo: player options / animations / swat movements / you_fwd
-
Try this, it will probably work...haven't tested it
Ped.Task.PlayAnimation("swat", "you_fwd", 8f, -1, AnimationFlags.Loop);
-
@marculu i tested it and it does work.
-
@JohnFromGWN Yes, I want a script for use a key of keyboard
-
@marculu
This should work. Copy paste code below into an empty text file. Give it any name you want but extension must be .3.cs
For example, Point.3.cs
To get the player to point, press the minus key (the one near the P on a U.S. keyboard).
To stop the anim, press the = key.
Change the key directly in the code if you prefer.using System.Windows.Forms; using GTA; using GTA.Math; using GTA.Native; namespace PedStuff { public class Basics : Script { public static Ped PP = Game.Player.Character; public Basics() { KeyUp += Basics_KeyUp; } private void Basics_KeyUp(object sender, KeyEventArgs e) { if (e.KeyValue == 189) // the - minus key { PP.Task.PlayAnimation("swat", "you_fwd", 8f, -1, AnimationFlags.Loop); } if (e.KeyValue == 187) // the = equal key { PP.Task.ClearAllImmediately; } } } }
-
@JohnFromGWN thank you! I put the file inside scripts?
-
@marculu Inside the scripts folder, yes.
-
@JohnFromGWN drop fps and no work for me
-
@marculu it shouldn't. It doesn't load any assets and it's a very simple animation.
Fault is likely with your hardware or other mods. My script simply replicates what any trainer does.