xyz555
Member
Thank you, I would like to ask you
my script
void spawnscale(void vName, float fX, float fY, float fZ ,void scale)
{
void self = getlocalvar("self");
void vSpawn;
int iDirection = getentityproperty(self, "direction");
clearspawnentry();
setspawnentry("name", vName);
if (iDirection ==0){
fX = -fX;
}
fX = fX + getentityproperty(self, "x"); //Get X location and add adjustment.
fY = fY + getentityproperty(self, "a"); //Get Y location and add adjustment.
fZ = fZ + getentityproperty(self, "z"); //Get Z location and add adjustment.
vSpawn = spawn();
changeentityproperty(vSpawn, "position", fX, fZ, fY);
changeentityproperty(self, "direction", iDirection);
setdrawmethod(vSpawn,1,scale,scale);
return vSpawn;
}
It can make the summoned props zoom in and out in different proportions
It is now able to run successfully
But I want to put it's scalex and scaley
separate processing
Pray for your help
I wish you a happy life and good health, thank you
my script
void spawnscale(void vName, float fX, float fY, float fZ ,void scale)
{
void self = getlocalvar("self");
void vSpawn;
int iDirection = getentityproperty(self, "direction");
clearspawnentry();
setspawnentry("name", vName);
if (iDirection ==0){
fX = -fX;
}
fX = fX + getentityproperty(self, "x"); //Get X location and add adjustment.
fY = fY + getentityproperty(self, "a"); //Get Y location and add adjustment.
fZ = fZ + getentityproperty(self, "z"); //Get Z location and add adjustment.
vSpawn = spawn();
changeentityproperty(vSpawn, "position", fX, fZ, fY);
changeentityproperty(self, "direction", iDirection);
setdrawmethod(vSpawn,1,scale,scale);
return vSpawn;
}
It can make the summoned props zoom in and out in different proportions
It is now able to run successfully
But I want to put it's scalex and scaley
separate processing
Pray for your help
I wish you a happy life and good health, thank you