I am using C + + ScriptHook
I can not do that created chars walked with animation.
How can I do?
05-11-2009 06:38 AM
give them the task to walkl ?
05-11-2009 06:58 AM
TaskFollowNavMeshToCoord(ped[id],px[id],py[id],pz[id], 0, 0,0);
but peds Teleports
05-11-2009 10:49 AM
you should try TaskGoToCoordAnyMeans()
im not sure what all the parameters are, but the first one should be a Ped and the three that follow are probably the coordinates. dont know what the others could be - sorry, dont have time to test it out right now!
edit: or TaskGoStraightToCoord() looks promising too, and aru has already documented that
05-11-2009 10:42 PM
Incidentally, you do not know the parameters
05-11-2009 11:46 PM
So I don't exactly know what all the parameters are, but I took a look at some of Rockstar's code. In bell2.sco you'll find that function being called. So I just replicated the parameters from there and got:
f32 x, y, z;
TaskCarDriveToCoordNotAgainstTraffic(0, v, x, y, z, 24, 0, 400514754, 2, -1f, 200);
Sorry I don't know what all those random numbers are for, I'm just replicating what I saw in the SCO file.
Also I think you live in Russia so... Если ты не понял, я знаю немного русский и могу объяснять по-русски :wink2:
05-12-2009 02:48 AM
Какие-то параметры ещё надо, так как ничего не куда не поехало
Some parameters have to, because nothing much does not go