2019-06-19 01:10:15 -04:00
|
|
|
--[[
|
|
|
|
|
|
|
|
PlaceDrivenCommand Script
|
|
|
|
|
|
|
|
Notes:
|
|
|
|
|
|
|
|
|
|
|
|
--]]
|
|
|
|
require("global")
|
|
|
|
|
|
|
|
function onEventStarted(player, actor, triggerName, pushCommand, unk1, unk2, unk3, ownerActorId, unk4, unk5, unk6, unk7)
|
|
|
|
|
|
|
|
actor = player:GetActorInInstance(ownerActorId);
|
2022-01-25 22:54:44 -05:00
|
|
|
print("TESSSSSSSSSSSSSST");
|
|
|
|
harvestCommand = GetStaticActorById(0xA0F055F7);
|
2019-06-19 01:10:15 -04:00
|
|
|
if (actor != nil) then
|
|
|
|
if (actor:GetActorClassId() == 1200052) then
|
2022-01-25 22:54:44 -05:00
|
|
|
player:KickEventSpecial(harvestCommand, 0, "commandJudgeMode", 0, 0, 0, 0, 0x4E26, 0, nil, 0xF, actor, nil, nil, nil, nil);
|
2019-06-19 01:10:15 -04:00
|
|
|
else
|
2022-01-25 22:54:44 -05:00
|
|
|
--player:kickEvent(actor, "pushCommand", false);
|
2019-06-19 01:10:15 -04:00
|
|
|
end
|
|
|
|
else
|
|
|
|
player:endEvent();
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|