Script v1_7_1_0
- AI
- Animals
- Collections
- Contracts
- Debug
- Economy
- Elements
- EnvironmentalScore
- Errors
- Events
- GUI
- Handtools
- Hud
- I3d
- Input
- Jobs
- Maps
- Materials
- Misc
- Objects
- Parameters
- Placeables
- Placement
- Player
- Shop
- Sounds
- Specialization
- Specializations
- StateMachine
- Statistics
- Tasks
- Triggers
- Utils
- Vehicles
Engine v1_7_1_0
- AI
- Animation
- Camera
- Entity
- Fillplanes
- general
- General
- I3D
- Input
- Lighting
- Math
- Network
- Node
- NoteNode
- Overlays
- Particle System
- Physics
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- VoiceChat
- XML
Foundation Reference
VehiclePlacementCallback
DescriptionPlacement callbackFunctions
callback
DescriptionRaycast callbackDefinition
callback(integer transformId, float x, float y, float z, float distance)Arguments
integer | transformId | id raycasted object |
float | x | x raycast position |
float | y | y raycast position |
float | z | z raycast position |
float | distance | distance to raycast position |
boolean | continue | continue |
26 | function VehiclePlacementCallback:callback(transformName, x, y, z, distance) |
27 | self.raycastHitName = transformName |
28 | self.x = x |
29 | self.y = y |
30 | self.z = z |
31 | self.distance = distance |
32 | |
33 | return true |
34 | end |
new
DescriptionCreate instance of classDefinition
new()Code
11 | function VehiclePlacementCallback.new() |
12 | local instance = {} |
13 | setmetatable(instance, VehiclePlacementCallback_mt) |
14 | |
15 | return instance |
16 | end |