Birdman Posted May 26, 2011 Share Posted May 26, 2011 Why this code won't hide my entity? TModel test=LoadModel("abstract::model.gmf"); .... pivot=FindChild(test,"block"); if (pivot) { HideEntity(pivot); } else { MessageBoxA(0,"block not found.","Error",0); } All names are OK since pivot is being found OK. Any idea? Edit: Block is a mesh inside the model, and i have no way to scale it or hide it. Tried both. Quote Link to comment Share on other sites More sharing options...
Canardia Posted May 26, 2011 Share Posted May 26, 2011 I guess need to hide the mesh using HideEntity(GetChild(pivot));. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Birdman Posted May 26, 2011 Author Share Posted May 26, 2011 If i use that code my project will close without giving an error. Release or Debug the same. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.