arcemu/arcemu — Issue #115: Lua / Vehicles Teleport
Author: Lokenn
Created: 2012-02-08 05:50:04+00:00
State: open

Engine: Ale
Arcemu last revision
Last Whydb

The Player is teleported but the vehicle dont... this is not good for some gameobject like "Vehicle Teleporters" in Wintergrasp.

TEST = {}

function TEST.OnChatMessage( event, pPlayer, pMessage, pType, pLanguage )
if( ( pMessage == "#gon" ) and ( pPlayer:IsOnVehicle() ) ) then
pPlayer:Teleport( 571, 5141.191406, 2841.045410, 408.703217, 3.163321 );
end
end

RegisterServerHook( 16, "TEST.OnChatMessage" );