コード例 #1
0
 /// <summary>
 /// 设置<seealso cref="Ped"/>为任务玩家
 /// </summary>
 /// <param name="ped"></param>
 public static void SetAsFighter(this Ped ped)
 {
     MissionRelationship.SetPedAsFighter(ped);
 }
コード例 #2
0
 /// <summary>
 /// 设置<seealso cref="Ped"/>为任务敌人
 /// </summary>
 /// <param name="ped"></param>
 /// <param name="isOnlyDamagedByFighterGroup">是否仅玩家可以对其造成伤害</param>
 public static void SetAsEnemy(this Ped ped, bool isOnlyDamagedByFighterGroup)
 {
     MissionRelationship.SetPedAsEnemy(ped, isOnlyDamagedByFighterGroup);
 }
コード例 #3
0
 /// <summary>
 /// 设置<seealso cref="Ped"/>为任务队友
 /// </summary>
 /// <param name="ped"></param>
 public static void SetAsAlliance(this Ped ped)
 {
     MissionRelationship.SetPedAsAlliance(ped);
 }
コード例 #4
0
 /// <summary>
 /// 设置<seealso cref="Ped"/>组别为<seealso cref="RelationshipBaseGroup"/>
 /// </summary>
 /// <param name="ped"></param>
 /// <param name="relationshipGroup"></param>
 public static void SetRelationshipGroup(this Ped ped, RelationshipBaseGroup relationshipBaseGroup)
 {
     MissionRelationship.SetPedRelaionshipGroup(ped, (int)relationshipBaseGroup);
 }