1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-20 11:47:48 +00:00
project-meteor-server/data/scripts/commands/PlaceDrivenCommand.lua

26 lines
508 B
Lua
Raw Normal View History

2016-06-19 23:16:31 -04:00
--[[
PlaceDrivenCommand Script
Notes:
--]]
require("global")
2016-06-19 23:16:31 -04:00
function onEventStarted(player, actor, triggerName, pushCommand, unk1, unk2, unk3, ownerActorId, unk4, unk5, unk6, unk7)
2016-06-19 23:16:31 -04:00
actor = player:GetActorInInstance(ownerActorId);
if (actor != nil) then
if (actor:GetActorClassId() == 1200052) then
player:kickEvent(actor, "commandJudgeMode", "commandJudgeMode");
else
printf("TEST");
player:kickEvent(actor, "pushCommand", "pushCommand");
end
2016-06-19 23:16:31 -04:00
else
player:endEvent();
end
end