|
|
void main() { setglobalvar("gomap", map2); } |
|
|
float exit = getglobalvar("gomap"); if(frame==15){ jumptobranch(exit, 1); } |
i really need to create a global variable |
Why can't you pass the data as a reference parameter? |
i really need to create a global variable with a name like "map2" |
i dont know if people in here are the type of keeping knowledge or information for themselves |
it's impossible for us to know what these functions do. |
####animationscript function main##### # data/chars/misc/branch/homexit.txt ######################################## void main() { int frame = getlocalvar("frame"); int animhandle = getlocalvar("animhandle"); if(animhandle==813) { void self = getlocalvar("self"); //Get calling entity void exit = getglobalvar("gomap"); if(frame==15){ jumptobranch(exit, 1); } return; } } |
setglobalvar(varname, value) ~Set a persistent global variant's value by name. If the value is empty, the variant will be deleted. ~Return 1 if succeeded, 0 if failed. ~See 'global variants'. ~Notice: It is important to remove unused global variants since there's a limit in amount. |
void self = ...