CakeLS Posted December 28, 2020 Share Posted December 28, 2020 When I iterate through a vehicle's dummies, it does everything fine, except for when it's checking if a frame has a child. It works unless the frame is a default dummy (door, bumper, bonnet, etc), but the chassis works fine. For example, if boot_dummy has a node called siren17, it will still say it does not have any children: Whilst if siren19 is in the same parent as boot_dummy and has siren20 as a child, it works as expected. Whereas boot_dummy always does not have any children: void VehicleMaterials::findDummies(CVehicle* vehicle, RwFrame* frame, bool parent) { if (!frame) return; const std::string name = GetFrameNodeName(frame); PluginMultiplayer::AddChatMessage(std::string(name + ": has child? " + ((frame->child)?("yes"):("no"))).c_str()); if (RwFrame* nextFrame = frame->child) findDummies(vehicle, nextFrame, (RwFrameGetParent(frame))?(true):(false)); if (RwFrame* nextFrame = frame->next) findDummies(vehicle, nextFrame, parent); }; It does not make any sense, that only these dummies are having this issue. Is there a way around it? Link to comment Share on other sites More sharing options...
CakeLS Posted January 16, 2021 Author Share Posted January 16, 2021 Bump. Link to comment Share on other sites More sharing options...
CakeLS Posted January 31, 2021 Author Share Posted January 31, 2021 Bump. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now