Creating destructibles for local player

The Undaddy

Creating with the power of rage
Reaction score
55
Will creating a destructible (say,pathing blocker) for local player cause a crash/split?
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
Creating any handle to a local player will cause problems, so to answer your question, yes.
 

chovynz

We are all noobs! in different states of Noobism!
Reaction score
130
Creating any handle to a local player will cause problems
[del]Bull.

Rheias: A unit is a handle. Units always get created for local players. Many other types of handles get created for local players safely. What are you talking about Rheias? Did I missunderstand something? Units is not handles?

The Undaddy: Anyway, making a pathing blocker for one person is unsafe like Rheias says. Better to do a conditioned unit enters region located at x,y,x2,y2, and unit is owned by <certain player> of type <flyer or unit type> then move unit to x3,y3.

Either that or put up with pathing blockers for all players. [/del]:)
 

The_Kingpin

Member (Who are you and why should I care?)
Reaction score
41
They don't get created for local players...

I tried to make a local unit once and I desync.
 

chovynz

We are all noobs! in different states of Noobism!
Reaction score
130
Sorry Rheias I confused local with owning.

Chovynz == Doofus.
(-.#)
 
Reaction score
456
Would it be able to hide it for local player, using this function:
JASS:
native          ShowDestructable            takes destructable d, boolean flag returns nothing

Not sure though, as units cannot be hidden to local players..

Or is it possible to remove destructable only for local player? Or then change the destructables animation to death for local player.. there's not much options left here.
 
Reaction score
456
Since when have we been able to do so?

call ShowDestructable(d, GetLocalPlayer() == p)

But tested it, it's possible! Also removing is possible, but dunno if it safe...
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
You could set the scale of the destructable to 0. That way, you cannot see it, but it is still there.
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
Holy shit. Oops.

Was given a link to this thread, I thought it was recent.
 
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