es ist ja seit G1 möglich, wenn ich als Held eine angezündete Fackel in der Hand halte,
die Fackelständer anzuzünden, wenn es noch nicht abends ist.
Allerdings wollte ich das gerne auch für die NPC's machen. Nun stehe ich vor dem Problem,
wie genau heißt der Fackelständer eigentlich?
Da das hier für G1 sein soll, müsste ja in der TA.D in etwa sowas drin stehen.
Spoiler:(zum lesen bitte Text markieren)
Code:
func void TA_UseTorch_Stand(var int start_h,var int start_m,var int stop_h,var int stop_m,var string waypoint)
{
TA_Min(self,start_h,start_m,stop_h,stop_m,ZS_UseTorch_Stand,waypoint);
};
und in der ZS.Torch (was meinen Ablauf enthalten sollte)
This one is tricky:
1. FIREPLACE mobs are 'available' for AI_UseMob even when lit (state 1) - but it is not possible to interact with them ... NPC will get 'stuck' in interaction animation.
2. Mobs cannot have useWithItem ItLsTorchBurning, seems like game engine does not recognize that NPC is having burning torch in hand. NPC will not be able to use mob.
With Ikarus & LeGo you can work-around these limitations by creating your own mob detection function and your own AI_UseMob function:
(in the video torch is in right hand while interaction animation has it in left hand - fixed meanwhile ) [Video]
I am still ironning out some details in the code - but later on (in couple of weeks) I will share this solution.
I am still ironning out some details in the code - but later on (in couple of weeks) I will share this solution.
Hello F a w k e s,
I am not a modder but only love playing Gothic, so I can't really comment on the coding aspect of what you did. But I just wanted to appreciate how absolutely fantastic this is and how much it adds to the atmosphere of Old Camp only seeing this little video. NPCs not lighting up lights in the evening has been bothering me for 20 years. Great work!
I am not a modder but only love playing Gothic, so I can't really comment on the coding aspect of what you did. But I just wanted to appreciate how absolutely fantastic this is and how much it adds to the atmosphere of Old Camp only seeing this little video. NPCs not lighting up lights in the evening has been bothering me for 20 years. Great work!
This!
Also amazing how you, Fawkes, help the community and provide examples/code!