本文整理汇总了C#中GTA.Ped.SetIntoVehicle方法的典型用法代码示例。如果您正苦于以下问题:C# Ped.SetIntoVehicle方法的具体用法?C# Ped.SetIntoVehicle怎么用?C# Ped.SetIntoVehicle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GTA.Ped
的用法示例。
在下文中一共展示了Ped.SetIntoVehicle方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Work
public static void Work()
{
if (IsWorking == false)
{
Function.Call(Hash.SET_MAX_WANTED_LEVEL, 0);
Function.Call(Hash.SET_NEW_WAYPOINT, 1191f, 3117f);
// JobsV.API.Temp.saveModel(Player);
IsWorking = true;
CustomPlayer.isWorking = true;
GTA.Game.FadeScreenOut(1000);
Script.Wait(1000);
biz1 = World.CreatePed(GTA.Native.PedHash.Business01AMM, ReturnLocation);
biz2 = World.CreatePed(GTA.Native.PedHash.Business02AFM, ReturnLocation);
Vehicle plane = World.CreateVehicle(GTA.Native.VehicleHash.Luxor, new Vector3(-950f, -3171f, 13f), 58f);
Script.Wait(1000);
biz1.SetIntoVehicle(plane, VehicleSeat.LeftRear);
biz2.SetIntoVehicle(plane, VehicleSeat.RightRear);
Script.Wait(30);
hours = Function.Call<int>(Hash.GET_CLOCK_HOURS);
Script.Wait(30);
// SetModel(PedHash.Fireman01SMY);
Player.Character.SetIntoVehicle(plane, VehicleSeat.Driver);
Script.Wait(1000);
GTA.Game.FadeScreenIn(2000);
}
else
{
Quit();
}
}