asName - internal name asCallback - function to call abRemoveWhenLookedAt - determines whether the callback should be removed when the player looked at the entity
asName What the player is looking at in order to show the text.
asCallback The name of the script (I'll come back to that).
abRemove... Either true or false. False means that no matter how many times you look, the message appears.
You also need to remove the string& and bool. Place any strings in quotation marks ("example"). And asName should be the name of what the player is looking at in the Level Editor.
asTextCategory The category name in the extra_english.lang to read from
asTextEntry The entry from the category above to display on screen
afTime Time in seconds to display.
You have your code correctly done, but I am changing the function to ShowMessageA for the time being:
Now it simply comes down to messing around with the code further to change what happens when you look at the other ones.
Where you see ..., you need to fill that in with your other lines of code. I cannot do it because I do not have that much patience and my text box is starting to lag on me.