Crash one Player and Preloading

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Okay how would i crash the player i type e.g i type -1 , player two should crash but only him.

And then also how exactly to preload abilities, should i just create a dummy with the ability and then kill him or should he also cast the ability?
 

saw792

Is known to say things. That is all.
Reaction score
280
JASS:
if GetLocalPlayer() == Player(2)
  set x = x/0 // call Player(-1) //Various other options
endif


Depends on how far you want to go. If there's a lot of first cast lag you might want to cast the ability as well, or just add the ability to a dummy and use the Preload() function on the sfx. Recycle the dummy (if you use one) of course...
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
JASS:
if GetLocalPlayer() == Player(2)
  set x = x/0 // call Player(-1) //Various other options
endif

that won't crash, but this will:

[LJASS]call SetPlayerState(Player(i), ConvertPlayerState(1), 0xA8C89)[/LJASS]

where i is the number of your player, don't even need local block
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Ya i noticed that thanks for the example Narks.

EDIT: just tried the gold is being set and no crashing?
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
If you really want to know, just call Player(-1) in a local block...

It only works on multiplayer.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
I start a local area connection with comouter players?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top