Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Radar blips (C++ and the renegade API)
Radar blips [message #296645] Tue, 13 November 2007 14:41 Go to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
I have no experiance with radar functions and was looking for a little help...

I create a GameObject * here:

GameObject *Icon = Commands->Create_Object_At_Bone(obj,"Invisible_Object","c HEAD");
Commands->Set_Model(Icon,"p_tnanites");
Commands->Attach_To_Object_Bone(Icon,obj,"c HEAD");
Commands->Attach_Script(Icon,"MDB_SSGM_Destroy_When_Object_Destroyed",ToString(Commands->Get_ID(obj)).c_str());


Then I want to set the Icon gameobject as a radar objective blip, so I took a look at the SSCTF code. Now JonWills description of "Set_Obj_Radar_Blip_Shape" says "//tested,doesnt work in MP", however it is used elsewhere in SSGM for SSCTF.
So I tried this:

Set_Obj_Radar_Blip_Shape(Icon,BLIP_SHAPE_OBJECTIVE);
Set_Obj_Radar_Blip_Color(Icon,2);


Obviously this didn't work as I am posting here.
I havn't worked with the radar functions at all, so if someone with a greater knowledge then me would like to shed some light, I would appreciate it.

My goal is to male the Icon object appear as a radar blip on all players radar. Everyone is teamed nuetral in this instance, so it makes sense that the radar blip color is white.


Thanks for reading, hope you can help.



 
Read Message
Read Message
Previous Topic: how do i set up and paint tib fields and how do i set up waypaths that atually work
Next Topic: Redoing animations
Goto Forum:
  


Current Time: Mon Jan 27 03:36:06 MST 2025

Total time taken to generate the page: 0.01234 seconds