I placed a rocket item on the map. I figured out to catch the event. Now i want to show a bigmessage with the objects tag, which is "Rocket"
However the script returns a error with null object or parameter not in array
Code: Select all
else if (Event.Type == CSmModeEvent::EType::OnPlayerTouchesObject)
{
if (Event.Landmark.Tag == "Rocket")
{
declare Message = Event.Landmark.Tag;
Message::SendBigMessage(Message, 5000, 1);
}
}