Looking at the error, it specifies that there is some problem with the linking of the source object and the destination object, specifically with the source. Your source is device, which is (presumably) defined outside of the code you've provided. The error occurs because the source object 'device' is not known in your function, or is not a linkable object. I'm curious what values 'pos' and 'rot' have in your function, seeing as they also use the object 'device'.
|