Script Dokumentation LS 2015 - VehiclePlacementCallback (Patch 1.3)
scripts/vehicles/VehiclePlacementCallback.lua
Copyright (c) 2008-2015 GIANTS Software GmbH, Confidential, All Rights Reserved.
This document is to be published solely by ls-mods.de
1 | -- Copyright (C) GIANTS Software GmbH, Confidential, All Rights Reserved. |
2 | |
3 | VehiclePlacementCallback = {}; |
4 | |
5 | local VehiclePlacementCallback_mt = Class(VehiclePlacementCallback); |
6 | |
7 | function VehiclePlacementCallback:new() |
8 | |
9 | local instance = {}; |
10 | setmetatable(instance, VehiclePlacementCallback_mt); |
11 | |
12 | return instance; |
13 | end; |
14 | |
15 | function VehiclePlacementCallback:callback(transformName, x, y, z, distance) |
16 | |
17 | self.raycastHitName = transformName; |
18 | self.x = x; |
19 | self.y = y; |
20 | self.z = z; |
21 | self.distance = distance; |
22 | |
23 | return true; |
24 | end;
|
Copyright (c) 2008-2015 GIANTS Software GmbH, Confidential, All Rights Reserved.
This document is to be published solely by ls-mods.de