Marsi4eg Posted February 28, 2016 Share Posted February 28, 2016 I have analyzed default mission 'Madd Dogg's Rhymes' where actors in the mansion have unique player-like markers, but I didn't find anything that could enable those markers. Some code from original scm: 009A: [email protected] = create_actor_pedtype 24 model #WBDYG2 at 1290.667 -778.9339 1083.01208AD: link_actor [email protected] to_enex_marker_at 1298.78 -798.2 radius 1.00860: link_actor [email protected] to_interior 50173: set_actor [email protected] Z_angle_to 350.1510648: unknown_actor [email protected] task_set 5.0 // float060B: set_actor [email protected] decision_maker_to [email protected]: [email protected] = create_marker_above_actor [email protected]: set_marker [email protected] radar_mode 2 The marker created like that is just a square blip. Not directional player-like. Googled, read scm tutorials and help over9000 times but only basics everywhere. Maybe someone here does know something about that? Thanks Link to comment Share on other sites More sharing options...
goodidea82 Posted February 28, 2016 Share Posted February 28, 2016 I don't know if there is a built-in function for that. If you don't find anything, then one possibility is that you draw yourself a texture ontop of the radar. dkluin 1 Link to comment Share on other sites More sharing options...
HeresOtis Posted February 28, 2016 Share Posted February 28, 2016 void CRadar::DrawRotatingRadarSprite(CSprite2d* sprite, float x, float y, float angle, unsigned int width, unsigned int height, CRGBA const& color) { ((void (__cdecl *)(CSprite2d*, float, float, float, unsigned int, unsigned int, CRGBA const&))0x584850)(sprite, x, y, angle, width, height, color); } Marsi4eg 1 Link to comment Share on other sites More sharing options...
Marsi4eg Posted February 28, 2016 Author Share Posted February 28, 2016 void CRadar::DrawRotatingRadarSprite(CSprite2d* sprite, float x, float y, float angle, unsigned int width, unsigned int height, CRGBA const& color){ ((void (__cdecl *)(CSprite2d*, float, float, float, unsigned int, unsigned int, CRGBA const&))0x584850)(sprite, x, y, angle, width, height, color);} nice but I need scm code Link to comment Share on other sites More sharing options...
HeresOtis Posted February 29, 2016 Share Posted February 29, 2016 You can also take a look at http://pastebin.com/adK6aHxb Link to comment Share on other sites More sharing options...
Marsi4eg Posted March 1, 2016 Author Share Posted March 1, 2016 Thanks, I'll take a look The main objective of this topic was to make sure that there isn't just simple blip or marker type, and it needs some more code, so I got an answer. Link to comment Share on other sites More sharing options...
Silent Posted March 5, 2016 Share Posted March 5, 2016 These blips show on the map when map zoom is active. No idea if you can force them to appear without the zoom actually. Marsi4eg 1 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