Other entity z display on platform

Piccolo

Well-known member
I'm having strange behaviors with entities on platforms. I can't hit them (nor can they). But I can grab them.

Moreover, they always appear in front of me even when they should not.

It happens when I spawn a platform, then spawn an entity on top of it (I checked its "a" and "base" properties,  entity is indeed on top of it).

Is there something I'm missing ?

EDIT : I think I get the attack issue, it's because I spawned entity in hero script so it was not hostile and all.

EDIT 2 : Wrong z display seems to be the same problem as this one :  http://www.chronocrash.com/forum/index.php?topic=473.msg3154#msg3154

I'll try to replace platform command by wall to see if it fixes my issue.
 
Try sortid in script, it displays some platforms in front of other ones.
Code:
spawn  pla2
@script void main() {
  changeentityproperty(getlocalvar("self"), "sortid", 1);
} @end_script
        map 0
	coords  2400  360 100
	at  6400


spawn  pla2
@script void main() {
  changeentityproperty(getlocalvar("self"), "sortid", 2);
} @end_script
        map 0
	coords  2300  360 100
	at  6400


spawn  pla2
@script void main() {
  changeentityproperty(getlocalvar("self"), "sortid", 3);
} @end_script
        map 0
	coords  2200  360 100
	at  6400


spawn  pla2
@script void main() {
  changeentityproperty(getlocalvar("self"), "sortid", 4);
} @end_script
        map 0
	coords  2100  360 100
	at  6400

spawn  pla2
@script void main() {
  changeentityproperty(getlocalvar("self"), "sortid", 5);
} @end_script
        map 0
	coords  2000  360 100
	at  6400
 
Back
Top Bottom