HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

GetLocalPlayer()

11-19-2005, 08:16 PM#1
Thunder_Eye
Ok I got some questions around what crashes when using GetLocalPlayer().
If I kill a destructible for a player, does this cause a crash? and also does it crash if I hide a destructible for a player?
11-20-2005, 04:46 AM#2
Zandose
I don't know for sure but killing a destructible for one player only will crash or desync because the pathing will be mixed up.

I don't think hiding a destructible will cause any desync's or crashes because even though the destructible can't be seen its pathing is still there.
11-20-2005, 11:00 AM#3
Thunder_Eye
Damn :P almost had an idea on how to make a "under-bridge" system. well thx anyway
11-20-2005, 11:30 AM#4
Vexorian
Whenever you destroy or create something for only one player, it is a sure recipe for a desync.

But changing colors (for example transparency) is the exact opposite
11-20-2005, 11:52 AM#5
Thunder_Eye
So do you think its possible to block an passage for one player?
Can you make ground-units count as air-units with triggers or something?
11-20-2005, 12:10 PM#6
Vexorian
Changing the pathing is for sure going to desync.

The closest way would be detecting when units of that player get in that area and stop them and make them turn back or something
11-20-2005, 01:51 PM#7
Thunder_Eye
Quote:
Originally Posted by Lord Vexorian
Changing the pathing is for sure going to desync.

Ok, but with the ground change to air thing I didnt mean with GetLocalPlayer()

Is it possible just to change a unit from ground to count as air for all players?
12-19-2005, 01:01 PM#8
qwertyui
Don't think it is

I believe we could help you better if you could explain what is it you trying to achieve with your "uber bridge"
12-19-2005, 01:21 PM#9
Blade.dk
Quote:
Originally Posted by Thunder_Eye
Is it possible just to change a unit from ground to count as air for all players?

Yes, very possible. Just add medivh's crow form ability to the unit, remove it again and you can set the fly height.

Also, there's a function called something Unit - Add Unit Classification like in the GUI, use that to add flying as classification and use Unit - Remove Unit classification to remove ground unit status.

I hope this helped.
12-19-2005, 01:44 PM#10
iNfraNe
In this way it is possible to create a both walkable bright, but there are some minor failures:

Air pathing blockers also seem to lead ground units around them, meaning: ground units will rather walk a LOOOOOOOOONG way around the air blockers instead of walking trough them.

You cannot change the place the arrow will click, it will always be below the bridge, making walking on the bridge very hard.