Re: Loop through all MOSRotatings?
Found it myself. In the mission Citadel, the dart's Lua uses it.
Code:
for i = 1 , MovableMan:GetMOIDCount() - 2 do
part = MovableMan:GetMOFromID(i);
if part.ClassName ~= "MOPixel" then
part = ToMovableObject(part);
if part ~= nil then
--Do stuff in here with it
end
end
end
Assuming self in this script is an MOSRotating that's pinned and can't collide with things, how do you check if the part is inside the boundaries of yourself?
Oh, and is it possible to make an MOSRotating "On top"; as in it gets drawn after everything else it can?