本文整理汇总了C#中GTA.Ped.NoLongerNeeded方法的典型用法代码示例。如果您正苦于以下问题:C# Ped.NoLongerNeeded方法的具体用法?C# Ped.NoLongerNeeded怎么用?C# Ped.NoLongerNeeded使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GTA.Ped
的用法示例。
在下文中一共展示了Ped.NoLongerNeeded方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MOD_Tick
//.........这里部分代码省略.........
if (Timer % 80 == 0)
{
vec = new Vector3(rnd.Next(0, 20) - 10, rnd.Next(0, 20) - 10, 0);
vec.Normalize();
msgBuff = string.Format("風向きが変わったぞ");
IntervalTimer = 30;
}
if (Player.Character.isInVehicle())
{
Player.Character.CurrentVehicle.ApplyForce(0.7f * vec);
}
else
{
Player.Character.ApplyForce(2.0f * vec);
}
}
else
{
EndFlag = true;
msgBuff = string.Format("強風注意報 解除");
IntervalTimer = 30;
}
break;
case 23:
{
Game.DisplayText("No.023 Faggio進呈", 4000);
msgBuff = string.Format("買い物とかに使える");
IntervalTimer = 30;
Vehicle fg = GTA.World.CreateVehicle("FAGGIO", Player.Character.Position.Around(2.0f));
if (Exists(fg))
{
fg.NoLongerNeeded();
}
EndFlag = true;
}
break;
case 24:
{
Game.DisplayText("No.024 COMETさん", 4000);
msgBuff = string.Format("音速が遅いぜ!");
IntervalTimer = 30;
Vehicle fg = GTA.World.CreateVehicle("COMET", Player.Character.Position.Around(3.0f));
if (Exists(fg))
{
fg.NoLongerNeeded();
}
EndFlag = true;
}
break;
case 25:
{
if (InitFlag)
{
ped = GTA.World.CreatePed(Player.Character.Position.Around(rnd.Next(20)) + new Vector3(0, 0, 50));
if (Exists(ped))
{
Game.DisplayText("No.025 ボルガ式解決法", 4000);
msgBuff = string.Format("ボルガ博士!お許し下さい!");
IntervalTimer = 30;
ped.Health = 1000;
Timer = 100;