Code: Select all
ObjectTemplate.SetMinimapIcon
However, the description of that command on the MDT website states that you can only use it for PCOs. Has anyone tried to add a minimap icon to a soldier kit?
Code: Select all
ObjectTemplate.SetMinimapIcon
Just make the PCO static. It doesn't need to move. This way holdObject isn't needed. Also set up the object spawner so the PCO takes max damage when it's out of the object spawner's radius (when it stops existing).Classical Modder wrote:The spawned object would be a simple PCO with a custom minimap icon added to it with the command in my first post. The object would be as small as possible, with armor and collision physics and would be placed with a small offset next to the soldier's back pack. With the holdObject 1 command, the PCO would stick to the soldier wherever it goes, and when the soldier dies, well the PCO simply falls to the ground.
Hi, not quite sure you mean by making it static. Do you mean disabling mobile physics? So then when the player dies it stays in the air above the soldier and doesn't fall to the ground? But then, even without mobile physics, I think the object would still fall to the ground even without the HoldObject command. Could be an idea, I'll try it out.Swaffy wrote:Just make the PCO static. It doesn't need to move. This way holdObject isn't needed. Also set up the object spawner so the PCO takes max damage when it's out of the object spawner's radius (when it stops existing).Classical Modder wrote:The spawned object would be a simple PCO with a custom minimap icon added to it with the command in my first post. The object would be as small as possible, with armor and collision physics and would be placed with a small offset next to the soldier's back pack. With the holdObject 1 command, the PCO would stick to the soldier wherever it goes, and when the soldier dies, well the PCO simply falls to the ground.
It doesn't need to fall to the ground. The minimap doesn't take into account height, just an X/Y grid. Also, no need for collisions... maybe not even a visual mesh. Worth playing around with.Classical Modder wrote:Hi, not quite sure you mean by making it static. Do you mean disabling mobile physics? So then when the player dies it stays in the air above the soldier and doesn't fall to the ground?