示例#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);
 }