More documentation on gathering

This commit is contained in:
Filip Maj 2021-02-26 21:08:32 -05:00
parent e030b14bf4
commit 7c144bd05a
2 changed files with 233 additions and 39 deletions

View file

@ -11,13 +11,13 @@ require("global")
function onEventStarted(player, actor, triggerName, pushCommand, unk1, unk2, unk3, ownerActorId, unk4, unk5, unk6, unk7)
actor = player:GetActorInInstance(ownerActorId);
print("TESSSSSSSSSSSSSST");
harvestCommand = GetStaticActorById(0xA0F055F7);
if (actor != nil) then
if (actor:GetActorClassId() == 1200052) then
player:kickEvent(actor, "commandJudgeMode", "commandJudgeMode");
player:KickEventSpecial(harvestCommand, 0, "commandJudgeMode", 0, 0, 0, 0, 0x4E26, 0, nil, 0xF, actor, nil, nil, nil, nil);
else
printf("TEST");
player:kickEvent(actor, "pushCommand", "pushCommand");
--player:kickEvent(actor, "pushCommand", false);
end
else
player:endEvent();