TylerH Posted January 8, 2010 Posted January 8, 2010 IsEntity, IsPivot, IsMesh, IsModel IsGroup, IsEmitter, IsLight, etc. I require a command like that in C++ in order to properly rewrite LoadScene, since the group of subobjects in Blitzmax holds Object and you cast it to TGroup for groups, I need to be able to tell if the given byte pointer is a group, and call commands on it accordingly, as opposed to casting, which I obviously can't do. 1 Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer -----
Canardia Posted January 8, 2010 Posted January 8, 2010 GetEntityKey(e,"class") should do it, although it won't do all what you wanted, just some entity classes. 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 ■
TylerH Posted January 8, 2010 Author Posted January 8, 2010 Well, I really only need the IsGroup command, which isn't an entity at all, so no go there. 1 Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer -----
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.