Which would be better if you have an actor and want to see if its a certain object?
if(myObj.IsA('MyObject'))
OR
if(MyObject(myObj) != none)
Is there any difference? I think the second would be better because you find 2 things from it. 1 is that its your object and the 2 is whether it is none or not. Does the first method also does both these things?
if(myObj.IsA('MyObject'))
OR
if(MyObject(myObj) != none)
Is there any difference? I think the second would be better because you find 2 things from it. 1 is that its your object and the 2 is whether it is none or not. Does the first method also does both these things?