SkyReaper2014 Posted October 5, 2012 Share Posted October 5, 2012 Ok so i was trying to make a script and it compiled ok so i assumed it would work,but when i pressed the home key nothing happenedHere ive posted the script since its not advanced: using System;using System.Windows.Forms;using GTA;public class TaiChi : Script { public TaiChi() { this.KeyDown += new GTA.KeyEventHandler(this.TaiChi_KeyDown); } private void TaiChi_KeyDown(object sender, GTA.KeyEventArgs e) { if (e.Key == Keys.Home) GTA.Native.Function.Call("TASK_PLAY_ANIM", Player.Character, "taichi01", "[email protected]_taichi_a", 4.00, 0, 1, 1, 0, -2); } } Please help?Im still new at learning coding and so i know ive probably made a simple mistake. I tried to fix it miyself,but nothing worked. Link to comment Share on other sites More sharing options...
ch3y3zze Posted October 5, 2012 Share Posted October 5, 2012 (edited) u didnty request the anim anyways i told u how in another thread, use ped.Task.PlayAnimation, it requests anims for u plays for u just pick the correct anim flag to loop...i believe it is 05 using System;using System.Windows.Forms;using GTA;public class TaiChi : Script{ public TaiChi() { this.KeyDown += new GTA.KeyEventHandler(this.TaiChi_KeyDown); } private void TaiChi_KeyDown(object sender, GTA.KeyEventArgs e) { if (e.Key == Keys.Home) Player.Character.Task.PlayAnimation(new AnimationSet("[email protected]_taichi_a"), "taichi01", 4f, AnimationFlags.Unknown05); }} ud learn alot faster if u joined the irc, i already told u we had mistaken u for a troll that was bothering us all day Edited October 5, 2012 by ch3y3zze Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now