What is a hostile player?
-
- English
- angriff
- Thread is marked as Resolved.
-
-
I don't see it on the link you provided. . .
-
Do a search from the G's in the Javadoc .. but try the below.
https://javadoc.rising-world.n…c.html#getHostilePlayer--
It is in the NPC so possibly the start of bandits.
-
I would think that method is for when a player attacks a NPC.
The event would (I assume) return which player was doing the attacking.
But I agree - can't wait till we get more danger with NPCs - skeleton warriors or bandits in dungeons!
-
@yahwho is right, this function gets the player which is considered as "hostile" by the npc. E.g. if you attack a pig, the pig considers you as hostile and runs away (once the distance between the npc and you is great enough, the "hostile status" will be removed again). If there is currently no "hostile player", this function returns null
-
@yahwho is right, this function gets the player which is considered as "hostile" by the npc. E.g. if you attack a pig, the pig considers you as hostile and runs away (once the distance between the npc and you is great enough, the "hostile status" will be removed again). If there is currently no "hostile player", this function returns null
Oh ok makes the Goat attack you no doubt.
Participate now!
Don’t have an account yet? Create a new account now and be part of our community!