Anonymous Login
2019-01-23 20:58 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002048OpenClonkEngine - C4Scriptpublic2018-12-11 13:02
ReporterMarky 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0002048: Find_ID() does ignore objects under unknown circumstances.
DescriptionThe following script caused the problem - the object is not in a separate layer or something:

public func Get(object to)
{
    AssertDefinitionContext();

    // Works only the second time the player aims, which is really weird...
    // the cursor object exists, and can be found via Find_ActionTarget()
    // but Find_ID ignores it
    //
    // return FindObject(Find_ID(this), Find_ActionTarget(to));
    for (var attached in FindObjects(Find_ActionTarget(to)))
    {
        if (attached->GetID() == this)
        {
            return attached;
        }
    }
    return nil;
}

TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2018-12-11 13:02 Marky New Issue
+Issue History