- 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?
ObjectTemplate.SetMinimapIcon
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.
Swaffy wrote: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.
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: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?
Return to 1942 Modding Discussion
Users browsing this forum: No registered users and 26 guests