Plasmatic
05-18-2004, 07:23 PM
+INF +INF -INF
Anyone ever see this returned back for a velocity or position? Seriously screws up the works if you're spawning projectiles.. :closet:
Plasmatic
05-18-2004, 08:14 PM
Insatead of a string of numbers (3 seperated by 2 spaces), like "12.6632 6.3524 99.1245" it returns that.. screwy darkstar engine...
SuperSlug
05-18-2004, 08:44 PM
Do you want to be able to mark a position on a map?
Plasmatic
05-18-2004, 09:08 PM
No, I'm doing some effects with spawning grenades in my [T1] Vengeance mod. I allready have it fixed, just thought I'd share it here. Here's a code snippet: %vel = Item::getVelocity(%this);
if(vector::normalize(%vel ) != "-NAN -NAN -NAN")
{
%box = getBoxCenter(%this);
%trans = "0 0 1 0 0 0 0 0 1 " @ %box;
// echo("Poof! pos"@%pos@" vel "@%vel);
%obj = Projectile::spawnProjecti le("MortarTrailGren", %trans, %this, %vel);
Projectile::spawnProjecti le(%obj);
GameBase::setPosition(%ob j, %pos);
Item::setVelocity(%obj, %vel);
}