Codin in C_sharp
Posted 02 May 2013 - 08:26 AM Edited by GTA_Player_M, 28 June 2013 - 09:30 AM.
I've just started writing mods for IV. (with ScriptHook)
I cant find list of available functions....
I found native functions. ( like
but I mean
Posted 02 May 2013 - 09:29 AM
Posted 02 May 2013 - 10:23 AM Edited by GTA_Player_M, 02 May 2013 - 10:27 AM.
great... i can't find download link.
Posted 03 May 2013 - 12:25 AM
Posted 03 May 2013 - 12:47 AM
Posted 17 June 2013 - 11:20 AM Edited by GTA_Player_M, 28 June 2013 - 09:37 AM.
GTA.Native.Function.Call("LOAD_ALL_PATH_NODES", -165.2489f, 738.463f,18.2663f);// or "LOAD_PATH_NODES_IN_AREA" or Game.LoadAllPathNodes=true;
Vector3 spawn_place= new Vector3 (-159.4306f, 702.650f, 10.6845f);
Vector3 destination = new Vector3 (-165.2489f, 738.463f, 18.2663f);
Ped target= World.CreatePed (0x5B404032, spawn_place, RelationshipGroup.Player);
target.ChangeRelationship (RelationshipGroup.Player, Relationship.Hate);
Why it doesn't work?
Ped doesn't go to destination. I tried to create ped on pavement. (ped was going to destinetion, but after a dozen meters he just disappeared.)
Moreover, .GoTo (destination,true) doesn't work too. (ped disappearing).
Can you help me?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users