Page 1 of 1

"spawner position" option

Posted: Thu May 29, 2008 6:26 pm
by kattle87
A nice feature would be this: when you choose "use spawner position" as option, the position component should be used as an offset instead of just being ignored.
would something like this work?

if UseSpawnerPosition and (CurrentModel<>nil) then
if not VecIsNull3(Position) then
Spawned.Position := CurrentModel.Position + Position;
else
Spawned.Position := CurrentModel.Position;
else
begin
if not VecIsNull3(Position) then
Spawned.Position := Position;
end;