2024-03-19 05:40 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005751Spring engineUnit Scriptingpublic2017-09-07 11:09
ReporterStickyStains 
Assigned ToKloot 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionduplicate 
Product Version103.0 
Target VersionFixed in Version103.0 +git 
Summary0005751: Spring.GetProjectileTarget(proID) invalid on destroyed Projectile
DescriptionCalled in this code, a projectile aiming for ground, revives no valid coordinates in the CallIn Projectile destroyed. Weapon is a Cannon and Projectile destroyed is called.

Returned Coordinates are always a table of {[1] = 0,[2] = 0,[3] = 0}.

function getProjectileTargetXYZ(proID)
        targetTypeInt, target = Spring.GetProjectileTarget(proID)

        if targetTypeInt == GROUND then
            return target[1], target[2], target[3]
        end
        if targetTypeInt == UNIT then
                ux,uy,uz = Spring.GetUnitPosition(target)
            return ux,uy,uz
        end
        if targetTypeInt == FEATURE then
                fx,fy,fz = Spring.GetFeaturePosition(target)
            return fx, fy, fz
        end
        if targetTypeInt == PROJECTILE then
            px,py,pz = Spring.GetProjectilePosition(target)
            return px,py,pz
        end
    end

TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
duplicate of 0005690resolvedKloot Spring.GetProjectileTarget returns 0,0,0 for position 
+Relationships

-Notes

~0018353

Kloot (developer)

"Weapon is a Cannon" => duplicate of 0005690
+Notes

-Issue History
Date Modified Username Field Change
2017-09-07 09:46 StickyStains New Issue
2017-09-07 11:09 Kloot Assigned To => Kloot
2017-09-07 11:09 Kloot Status new => resolved
2017-09-07 11:09 Kloot Resolution open => duplicate
2017-09-07 11:09 Kloot Fixed in Version => 103.0 +git
2017-09-07 11:09 Kloot Note Added: 0018353
2017-09-07 11:09 Kloot Relationship added duplicate of 0005690
+Issue History