Skip to content
User Avatar
#3656
Auto-translated
Dolgy

IsAIPlayer(Player_ID)

If the player is human, it returns 0; if it's AI, it returns 1.
Thank you.
Once again, I'm puzzled: what kind of document is lying around in the game folder?
I (as you noticed) don't have that again...
Although, I can find a line in the document.
Next time, I'll intuitively guess the function name and hope for the best. :)

Added 1 minute ago
Azgalor
Among the official ones, I only noticed IsHuman and IsComputer in combat scripts. But, as I understand it, you need functions for a non-combat script?
Yes, I wanted it for an adventure map. In general, I know how to check it through some convoluted process, but it takes 10 lines for a simple action.
Dolgy, it seems, found it on a topic about undocumented functions.


Не уходи безропотно во тьму,
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!

Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.


                                                                                       

Statistics

Welcome our newest member: artem

Users Online 2 users 1447 guests