Hi, its me again 
Im sure this is going to be another "1question 1 answer" type thread...
I just want to know how to place a (I think its called a "pointer"?) inside a function parameter "thing" ---> ( ) (sorry, I dont know how to call this!) when its a cursor mode (like eModeLookAt, for example):
Code: ags
When I previously tried "this GUI*" or "this Button*"....it worked...now I try "this CursorMode*" and it gives me an error:
GlobalScript.asc(913): Error (line 913): 'this' cannot be used with primitive types
Whats a primitive type? Im guessing Button* or GUI* arent "primitive types" since those worked and "CursorMode*" didnt?
Are those "pointers"...and most importantly, in the manual they explain what pointers are but is there a list of all "pointers" in AGS somewhere? I couldnt find it.

Im sure this is going to be another "1question 1 answer" type thread...
I just want to know how to place a (I think its called a "pointer"?) inside a function parameter "thing" ---> ( ) (sorry, I dont know how to call this!) when its a cursor mode (like eModeLookAt, for example):
function cursorAnimOnOff(this CursorMode*, int iXcursor, int iAnimView, int iNoAnim )
{
if (mouse.GetModeGraphic(this) == iXcursor) //"x" cursored-out
{
if (cursorAnim == true)
{
mouse.ChangeModeView(this, iAnimView); //change to normal animated view
}
mouse.ChangeModeGraphic(this, iNoAnim); //normal cursor, no animation
}
}
When I previously tried "this GUI*" or "this Button*"....it worked...now I try "this CursorMode*" and it gives me an error:
GlobalScript.asc(913): Error (line 913): 'this' cannot be used with primitive types
Whats a primitive type? Im guessing Button* or GUI* arent "primitive types" since those worked and "CursorMode*" didnt?
Are those "pointers"...and most importantly, in the manual they explain what pointers are but is there a list of all "pointers" in AGS somewhere? I couldnt find it.