Пример #1
0
 public Weapon(Ped owner, WeaponHash hash)
 {
     Owner = owner;
     Hash  = hash;
 }
Пример #2
0
 public void SeekCoverFrom(Ped target, int duration)
 {
     Function.Call(Hash.TASK_SEEK_COVER_FROM_PED, Ped.Handle, target.Handle, duration,
                   false, false, false);
 }
Пример #3
0
 public void Rob(Ped target, int duration, int flag = 18)
 {
     Function.Call((Hash)0x7BB967F85D8CCBDB, Ped.Handle, target.Handle, flag, duration);
 }
Пример #4
0
 public void Combat(Ped target)
 {
     Function.Call(Hash.TASK_COMBAT_PED, Ped.Handle, target.Handle, 0, 0);
 }
Пример #5
0
 public void ReviveTarget(Ped target)
 {
     Function.Call((Hash)0x356088527D9EBAAD, Ped.Handle, target.Handle, -1516555556);
 }
Пример #6
0
 public void HuntAnimal(Ped target)
 {
     Function.Call((Hash)0x4B39D8F9D0FE7749, target.Handle, Ped.Handle, 1);
 }
Пример #7
0
 public void HandsUp(int duration, Ped facingPed = null)
 {
     Function.Call(Hash.TASK_HANDS_UP, Ped.Handle, duration, facingPed == null ? 0 : facingPed.Handle, -1, false);
 }
Пример #8
0
 public void LeadHorse(Ped horse)
 {
     Function.Call((Hash)0x9A7A4A54596FE09D, Ped.Handle, horse.Handle);
 }
Пример #9
0
 public void HitchAnimal(Ped animal, int flag = 0)
 {
     Function.Call((Hash)0x9030AD4B6207BFE8, Ped.Handle, animal.Handle, flag);
 }
Пример #10
0
 internal Tasks(Ped ped)
 {
     Ped = ped;
 }
Пример #11
0
 public void DismountAnimal(Ped animal)
 {
     Function.Call((Hash)0x48E92D3DDE23C23A, Ped.Handle, animal.Handle, 0, 0, 0, 0);
 }
Пример #12
0
 public void MountAnimal(Ped animal, int timeout = -1)
 {
     Function.Call((Hash)0x92DB0739813C5186, Ped.Handle, animal.Handle, timeout, -1, 2f, 1, 0, 0);
 }