Script v1.4.4.0
Engine v7.0.0.2
- General
- Entity
- Node
- Scenegraph
- Lighting
- Camera
- Shape
- Particle System
- Physics
- Spline
- Animation
- Overlays
- Sound
- Input
- XML
- Network
- Callbacks
- Text Rendering
- Terrain Detail
- Tire Track
- Editor
- Rendering
- String
- Math
- I3D
- Fillplanes
Foundation Reference
AIVehicleRotateRightEvent
DescriptionEvent for ai rotate rightFunctions
emptyNew
DescriptionCreate instance of Event classDefinition
emptyNew()Return Values
table | self | instance of class event |
15 | function AIVehicleRotateRightEvent:emptyNew() |
16 | local self = Event:new(AIVehicleRotateRightEvent_mt); |
17 | return self; |
18 | end; |
new
DescriptionCreate new instance of eventDefinition
new(table object)Arguments
table | object | object |
23 | function AIVehicleRotateRightEvent:new(object) |
24 | local self = AIVehicleRotateRightEvent:emptyNew() |
25 | self.object = object; |
26 | return self; |
27 | end; |
readStream
DescriptionCalled on client side on joinDefinition
readStream(integer streamId, integer connection)Arguments
integer | streamId | streamId |
integer | connection | connection |
33 | function AIVehicleRotateRightEvent:readStream(streamId, connection) |
34 | self.object = readNetworkNodeObject(streamId); |
35 | self:run(connection); |
36 | end; |
writeStream
DescriptionCalled on server side on joinDefinition
writeStream(integer streamId, integer connection)Arguments
integer | streamId | streamId |
integer | connection | connection |
42 | function AIVehicleRotateRightEvent:writeStream(streamId, connection) |
43 | writeNetworkNodeObject(streamId, self.object); |
44 | end; |
run
DescriptionRun action on receiving sideDefinition
run(integer connection)Arguments
integer | connection | connection |
49 | function AIVehicleRotateRightEvent:run(connection) |
50 | AIVehicle.aiRotateRight(self.object); |
51 | end; |