🎁
🏆 导航菜单
🎪 扩展内容
🎯 沙盘引擎文档
🕹️ 文章及书籍&教程
🎖️ 外部的链接
🎁
🏆 导航菜单
🎪 扩展内容
🎯 沙盘引擎文档
🕹️ 文章及书籍&教程
🎖️ 外部的链接
获取实例对象的ID。
vehicle.ID: int
获取实例对象的UUID。
vehicle.UUID: string
获取实例对象的坐标位置。
vehicle.Pos: Vector
获取载具正前方向量。
vehicle.Forward: Vector
获取实例对象的平行角度(Y轴)。
vehicle.Angle: float
获取实例对象的欧拉角度。
vehicle.EulerAngle: Vector
获取实例对象的载具模型ID(载具标识)。
vehicle.Model: int
获取实例对象的载具类型(如:汽车、船、飞行器等)。
vehicle.Type: int
获取实例对象的生命值。
vehicle.Health: int
获取实例对象的载具乘员最大数量。
vehicle.Seat: int
获取实例对象的载具正在乘坐人数。
vehicle.Seated: int
获取载具的喇叭开关。
vehicle.Horn: bool
获取载具的警报开关(如:特殊载具警报)。
vehicle.Alarm: bool
获取实例对象的引擎开关。
vehicle.Engine: bool
获取实例对象的载具开关(只有逻辑作用,没有具体行为)。
vehicle.Locked: bool
获取实例对象的幽灵模式开关。
vehicle.GhostMode: bool
获取实例对象的载具颜色。
vehicle.Color: Color
获取实例对象的载具驾驶人角色,不存在则返回
null
。
vehicle.Driver: Character
获取载具当前的同步物理速度。
vehicle.Velocity: Vector
获取载具的完整物理速度,并非引擎速度,也可根据此值进行载具速度比例换算。
vehicle.Speed: float
获取载具的修正后物理速度,与
vehicle.Speed
的区别在于,不会记录0.2
及以下的速度(将自动变为0)。因为在多数情况下,速度
<=0.2
时基本已经停止移动了,往往并不需要特别精确的数据。
vehicle.FixedSpeed: float
获取载具的完整速度百分比(0.0~1.0),取决于当前速度与最大速度。
vehicle.SpeedProgress: float
获取载具的灯光级别。
vehicle.Light: int
获取载具的主要灯光颜色。
vehicle.LightColor: Color
获取载具是否已损毁(
vehicle.Health <= 0
)。
vehicle.IsDamaged: bool
获取载具是否在水中。
vehicle.IsInWater: bool
获取载具是否正在被燃烧。
vehicle.IsOnFire: bool
寻找一个实例对象(通过ID),不存在则返回
null
。
function Vehicle.Find( id: int ): Vehicle
寻找一个实例对象(通过UUID),不存在则返回
null
。
function Vehicle.Find( uuid: string ): Vehicle
获取当前所有存在实例对象数量。
function Vehicle.GetCount(): int
获取当前存在的指定索引实例对象,通常搭配
GetCount()
遍历使用。
function Vehicle.Get( index: int ): Vehicle
根据索引获取指定位置的角色实例,不存在则返回
null
。
function vehicle.GetOccupant( index: int ): Character
根据角色实例获取其乘坐位置索引,不存在则返回
-1
。
function vehicle.FindOccupant( character: Character ): int
根据索引获取指定轮胎状态,不存在则返回
-1
。
function vehicle.GetTyre( index: int ): int
根据Key获取载具属性数据信息,不存在则返回
null
。
function vehicle.GetData( key: string ): any