O Ilusionista
Captain 100K
I noticed that entities shoot using the projectile command can't be affected by subject_to_hole.
Its intentional or its a bug? because its very weird.
For example, projectiles shoot using this script won't be affect by subject_to_hole or wall
Its intentional or its a bug? because its very weird.
For example, projectiles shoot using this script won't be affect by subject_to_hole or wall
void shoot(void Shot, float dx, float dy, float dz)
{ // Shooting projectile
void self = getlocalvar("self");
int Direction = getentityproperty(self, "direction");
int x = getentityproperty(self, "x");
int y = getentityproperty(self, "a");
int z = getentityproperty(self, "z");
if (Direction == 0){ //Is entity facing left?
dx = -dx; //Reverse X direction to match facing
}
projectile(Shot, x+dx, z+dz, y+dy, Direction, 0, 0, 0);