@Crimson Wizard: Excellent. It works. Thank you.
Code: ags
I have minimal understanding of C++; my background is mostly web languages. But by placing the asterisk immediately after the data type, I'm essentially saying "get the passed hotspot from the above function"?
function youCantTalkToThe(Hotspot* hotSpotRef)
{
Display("You can't talk to the %s", hotSpotRef.Name);
}
// room script
function hHotspot3_Talk(Hotspot *theHotspot, CursorMode mode)
{
youCantTalkToThe(theHotspot);
}
I have minimal understanding of C++; my background is mostly web languages. But by placing the asterisk immediately after the data type, I'm essentially saying "get the passed hotspot from the above function"?