2016-06-19 23:16:31 -04:00
|
|
|
--[[
|
|
|
|
|
|
|
|
PlaceDrivenCommand Script
|
|
|
|
|
|
|
|
Notes:
|
|
|
|
|
|
|
|
|
|
|
|
--]]
|
2017-03-07 08:32:57 -05:00
|
|
|
require("global")
|
2016-06-19 23:16:31 -04:00
|
|
|
|
2016-08-05 18:23:59 -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
|
2016-08-05 18:23:59 -04:00
|
|
|
if (actor:GetActorClassId() == 1200052) then
|
|
|
|
player:kickEvent(actor, "commandJudgeMode", "commandJudgeMode");
|
|
|
|
else
|
2017-03-07 08:32:57 -05:00
|
|
|
printf("TEST");
|
2016-08-05 18:23:59 -04:00
|
|
|
player:kickEvent(actor, "pushCommand", "pushCommand");
|
|
|
|
end
|
2016-06-19 23:16:31 -04:00
|
|
|
else
|
|
|
|
player:endEvent();
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|