Help with Ped behavior
Posted 21 July 2013 - 12:22 AM
my HULK script has a enemy feature, but my enemy ped starts to flee and i need to restart the tasks to attack sorrounding peds.
so, it's possible to make the ped more suicide? make him attack with melee even if we are shooting them?
also, it's possible to avoid the euphoria body balance? this is anothr issue that i had, when the ped is running and we shoot him he fall because of the body balance euphoria
Posted 21 July 2013 - 03:18 PM
The solution? run it every tick. Works perfect.
Maybe this solution fits your problem.
To prevent the euphoria stuff I might have seen a native for that. Or maybe don't load colisions.
Posted 21 July 2013 - 06:29 PM Edited by pedro2555, 21 July 2013 - 06:42 PM.
Not sure what all this does, but maybe
I haven't tested none of them for your case.
For the euphoria thingy maybe
And while looking aroung, it maybe cool
Posted 29 July 2013 - 05:34 PM Edited by hardsty1e, 31 July 2013 - 03:42 AM.
DecisionMaker dm, cdm;
GTA.Native.Function.Call("LOAD_CHAR_DECISION_MAKER", 2, dm);
GTA.Native.Function.Call("LOAD_COMBAT_DECISION_MAKER", 3, cdm);
GTA.Native.Function.Call("SET_DECISION_MAKER_ATTRIBUTE_SIGHT_RANGE", dm, 250);
GTA.Native.Function.Call("SET_CAN_TARGET_CHAR_WITHOUT_LOS", ped, true);
GTA.Native.Function.Call("SET_CHAR_DECISION_MAKER", ped, dm);
GTA.Native.Function.Call("SET_COMBAT_DECISION_MAKER", ped, cdm);
GTA.Native.Function.Call("SET_DECISION_MAKER_ATTRIBUTE_CAUTION", dm, 2);
GTA.Native.Function.Call("SET_DECISION_MAKER_ATTRIBUTE_CAUTION", cdm, 2);
GTA.Native.Function.Call("SET_PED_IS_BLIND_RAGING", ped, true);
GTA.Native.Function.Call("TASK_COMBAT", ped, Player.Character);
Posted 28 December 2013 - 09:50 PM
I've noticed while on a shooting spree, bouncers will chase and melee attack me, even though I'm armed. Maybe that will help, if you haven't already figured it out.
thx, i will test and let you know the results
So what are the results??
Posted 29 December 2013 - 01:45 AM
lol, i forgot to say, didnt resulted in what i need, ped still fleeing, maybe im doing something wrong
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users