Sprache Deutsch Language English

Script Dokumentation LS 2015 - VehiclePlacementCallback (Patch 1.3)

Script Dokumentation Übersicht

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
3VehiclePlacementCallback = {};
4
5local VehiclePlacementCallback_mt = Class(VehiclePlacementCallback);
6
7function VehiclePlacementCallback:new()
8
9 local instance = {};
10 setmetatable(instance, VehiclePlacementCallback_mt);
11
12 return instance;
13end;
14
15function 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;
24end;
Copyright (c) 2008-2015 GIANTS Software GmbH, Confidential, All Rights Reserved.
This document is to be published solely by ls-mods.de
Script Dokumentation Übersicht