Callbacks
This thing allows the program to better interact with your script, indicating how the program should behave in the right case.
Last updated
This thing allows the program to better interact with your script, indicating how the program should behave in the right case.
Last updated
To create callback you should create function and then mark program, that you can handle this case. Here a litte example of creating callback
Main game function to handle all player movements
Contains 3 arguments:
There is no need to return anything
Something like the main tick of the game
Contains 1 argument:
int (current stage)
There is no need to return anything
Render some controls (like buttons, toggles, sliders and etc.) in our menu
Contains no arguments
There is no need to return anything
There you can render your ui, esp, and others visuals things using our Render class
Contains no arguments
There is no need to return anything
There you can ignore or filter some players, so if you need you can add more checks to rage logic
Contains 2 arguments:
int (enemy player index)
Return false if you need to ignore player and return true if everything is OK
(enemy player controller)