Hiding a marker.
by Chris "Dark" Evans · in Torque Game Engine · 12/19/2001 (2:59 am) · 2 replies
In my game I'm going to use a marker set in the editor as a shop. When you're close enough, and you press "i" your inventory will pop up and show you everything they have.
I made the shape in max, looks like a little diamond, made a new datablock in marker.cs, and edited MissionMarkerData::create() to include:
When I place it in the editor everything works fine. But when I go back into my player view I can still see the marker.
How do I get it to only show the marker while in the editor? I'd like to do it the same way the editor hides the other markers.
Dark
I made the shape in max, looks like a little diamond, made a new datablock in marker.cs, and edited MissionMarkerData::create() to include:
case "ShopMarker":
%obj = new MissionMarker()
{
datablock = %block;
};
return(%obj);When I place it in the editor everything works fine. But when I go back into my player view I can still see the marker.
How do I get it to only show the marker while in the editor? I'd like to do it the same way the editor hides the other markers.
Dark
#2
I looked at the code and you're right, it does look like it should be hidden. It's strange though because the SpawnSphere and WayPoint markers both get hidden, so I think I'm missing something in the scripts.
I'll lookat it later, right now I'm trying to fix my water error.
Dark
12/21/2001 (6:00 pm)
No, I pressed f11 and the entire editor hud went away. I walked around and could still see it.I looked at the code and you're right, it does look like it should be hidden. It's strange though because the SpawnSphere and WayPoint markers both get hidden, so I think I'm missing something in the scripts.
I'll lookat it later, right now I'm trying to fix my water error.
Dark
Torque Owner Tim Gift