Scripting, Code & Interaction: Difference between revisions

*>Monkey 05 06
*>Monkey 05 06
Line 333: Line 333:
'''''Note that if the pointer is global (outside of all functions), then you cannot assign it an initial value.
'''''Note that if the pointer is global (outside of all functions), then you cannot assign it an initial value.


Also note that if you are defining multiple pointers at once, you have to place an asterik before the name of each pointer.'''''
Also note that if you are defining multiple pointers at once, you have to place an asterik before the name of each pointer.
 
Furthermore, you should take note that the asterik can actually be placed beside the variable type (i.e., GUI* GUIPointer instead of GUI *GUIPointer), but it will always be parsed as being attached to the variable (i.e., GUI *GUIPointer).'''''


Of course this would be a rather pointless assignment, unless you just wanted a new alias for your GUI.  A more useful assignment makes use of the function GUI.GetAtScreenXY:
Of course this would be a rather pointless assignment, unless you just wanted a new alias for your GUI.  A more useful assignment makes use of the function GUI.GetAtScreenXY:
Anonymous user