Mateos Posted December 17, 2021 Share Posted December 17, 2021 Good morning, I have a question regarding the team_WOLF_objective game entity I tried to grab their position using (example map: [uJE] Cathedral, after /entitylist): GetEntWorldAABB( GetGameEntityFromId( 102 ) ).CenterPoint() But it returns (0, 0, 0) I was wondering if these are special entities that don't have a position, or is it an OB-sided thingy, or something else? I know I can just define constants by hand, but I was wondering this still Thank you Quote Link to comment Share on other sites More sharing options...
Moderators palota Posted December 18, 2021 Moderators Share Posted December 18, 2021 These entities don't have an AABB, but they have a position. GetEntPosition(102) It's not recommended to use entity IDs, because they can depend on mods. It's better to use entity names. GetEntPosition(GetEntityByName("Axis_wobj")) Mateos 1 Quote Link to comment Share on other sites More sharing options...
Mateos Posted December 18, 2021 Author Share Posted December 18, 2021 Good morning, Thank you for your answer I knew the ID could change depending on the compilation build but not with mods, yeah right mods injecting entities There's one spawn without a name so I'll go with an hardcoded constant then, and names with the other ones 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.