Vehicle

From Blue Mars Developer Guidebook

Jump to: navigation, search
There are security restrictions on this article

Contents

Note: Vehicles are not entirely supported yet. This article is for informational purposes only and represents a work in progress

Vehicle

These functions are defined in the Vehicle table. They are mostly used inside AI behaviors scripts.

SetOwnerId(ownerId)
GetOwnerId()
GetVehiclePhysicsStatus(statusTable)	
SetPlayerToSit(playerId, flags)	
IsPartInsideRadius(slot, pos, radius)
IsInsideRadius(pos, radius)
IsEmpty()
GetRepairableDamage()
StartAbandonTimer([force, [timer])
KillAbandonTimer()
Destroy()
MultiplyWithEntityLocalTM(entityID, entity, pos)
MultiplyWithWorldTM(pos)  
UpdateVehicleAnimation(entity, slot)
RefreshPhysicsGeometry(part, slot, physIndex)	
AddSeat(params)
SetExtensionActivation(name, bActivated)
SetExtensionParams(extension,params)
GetExtensionParams(extension,params)
HasHelper(name)
GetHelperPos(name, isVehicleSpace)
GetHelperDir(name, isVehicleSpace)
GetHelperWorldPos(name)
SetMovement(movement, params)
EnableMovement(enable)
DisableEngine(disable)
OnHit(shooterId, damage, position, radius, hitClass, explosion, frost)
ProcessPassengerDamage(passengerHandle, actorHealth, damage, pDamageClass, explosion)
OnPassengerKilled(passengerHandle)
IsDestroyed()
IsFlipped()
IsSubmerged()
IsUsable(userId)
OnUsed(userId, index)
EnterVehicle(actorId, seatIndex, isAnimationEnabled)
ChangeSeat(actorId, seatIndex, isAnimationEnabled)
ExitVehicle(actorId)
GetComponentDamageRatio(componentName)
GetCollisionDamageThreshold()  
GetSelfCollisionMult(velocity, normal, partId, colliderId)
GetMovementDamageRatio()
SetMovementSoundVolume(volume)
SetAmmoCount(name, amount)
SetMovementMode(mode)
GetMovementType()
GetFrozenAmount()
SetFrozenAmount(frost)
OpenAutomaticDoors()
CloseAutomaticDoors()
BlockAutomaticDoors(isBlocked)
ExtractGears()
RetractGears()

VehicleSystem

Defined in the VehicleSystem table:

LogSlots(vehicleName)  
GetVehicleImplementations
GetOptionalScript(vehicleName)
 SetTpvDistance(distance)
SetTpvHeight(height)
ReloadSystem()

VehicleSeat

In the VehicleSeat table:

Reset()
SetPassenger(passengerId, thirdPerson)
RemovePassenger()
IsFree()
IsDriver()
IsGunner()
IsLocked()
GetWeaponCount()
GetWeaponId(index)
SetAIWeapon(weaponId)
Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools