What exactly is "GetEnumPlayer()" and "GetLocalPlayer()"
i see them used alot but can't figure out what they do D:
and....
function SendExit takes player p returns nothing
if p==GetLocalPlayer()then
call ExecuteFunc("ExitWarcraft")
endif
endfunction
i saw this in a tutorial and it supposedly exits player p's warcraft.....
but i don't understand why it would....
the "executefunc" isnt directed at anyone in particular....is it?
EDIT: hmmm about the function SendExit up there....i realized it was coded 2 yrs ago....mebe thats why it doesnt work anymore?
is there another way to crash/exit another player from warcraft?
NOTE: this is for educational purposes only.....i wont abuse this knowledge >.<
[JASS HELP] Enum and local player? & executefunc? etc
Moderator: Cheaters
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
-
- Some Honorary Title
- Posts: 1713
- Joined: June 8th, 2007, 5:08 am
- Title: Angry Bird
Re: [JASS HELP] Enum and local player? & executefunc? etc
GetEnumPlayer() will get you a list of players of the same type, depends on what trigger you are using.
Enum simply means "enumerated"
GetLocalPlayer() get you the players whom computers are reading this line.
ExecuteFunc simply execute a function by its name. p/s it shall crashes the player because function exitwarcraft doesn't existed. You can't execute an invalid function or you will get fatal errors.
You can crash one player by making his computer to read an fatally errored JASS. Such as Call Player(-1)
Sup, happy learning.
Enum simply means "enumerated"
GetLocalPlayer() get you the players whom computers are reading this line.
ExecuteFunc simply execute a function by its name. p/s it shall crashes the player because function exitwarcraft doesn't existed. You can't execute an invalid function or you will get fatal errors.
You can crash one player by making his computer to read an fatally errored JASS. Such as Call Player(-1)
Sup, happy learning.
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm