scn TestStealScriptfloat fquestdelaytimeref itemRefref ownerRefshort initbegin GameMode if(init == 1) if(oncontroldown 5 == 0) return ;optimizing else ;activate button pressed set itemRef to getCrosshairRef if(itemRef != 0) if(itemRef.isActor == 0) if (itemRef.IsActivator == 0) if (itemRef.IsContainer == 0) if (itemRef.IsDoor == 0) if (itemRef.IsFurniture == 0) if(player.isActorDetected == 0) DebugPrint "setting ownership on %i" itemRef TestExpr(itemRef.SetOwnership) ;try to set the ownership of the ref in the crosshair to player ;(testexpr should save the script from crashing if the target is still not valid somehow) else Printd "player detected" endif else Printd "IsFurniture" endif else Printd "IsDoor" endif else Printd "IsContainer" endif else Printd "IsActivator" endif else Printd "IsActor" endif endif endif else set fquestdelaytime to 0.001 set init to 1 endifend