with sxf_absoluteposition set, here's what I tried on the x/y/z offsets:
- using the absolute coordinates: object spawns right on me
- subtracting the coordinates from my own: object spawns way out of the map (I was so sure this would work but it didn't)
- subtracting my coordinates from the spawn coordinates: object spawns way out of the map, on a different direction than the above
I have no idea what else to try
And I have to use A_SpawnItemEx since I need the monster spawned to be friendly and belong to my team (designatedteam does nothing, my team's monsters still attack it unless I spawn it)
Also the coordinates are passed from scripts:
Code: Select all
script 804 (void) // executed by the original actor, one tic before the new one is spawned to replace it
{
spherex = GetActorX(0) *;
spherey = GetActorY(0);
spherez = GetActorZ(0);
}
script 805 (void)
{
SetResultValue(spherex);
}
script 806 (void)
{
SetResultValue(spherey);
}
script 807 (void)
{
SetResultValue(spherez);
}Code: Select all
A_SpawnItemEx("RedTeamControlSphere",ACS_ExecuteWithResult(805),ACS_ExecuteWithResult(806),ACS_ExecuteWithResult(807),0,0,0,0,SXF_ABSOLUTEPOSITION|SXF_NOCHECKPOSITION)
