Example:
PHP Code:
if (created) {
setstring this.def,idle,walk,sit,swim; // define default/setbackto ganis
setstring this.new,idle_new,walk_new,sit_new,swim_new; // define new custom ganis
timeout = .05; // initiate timeout
}
if (timeout) { // timeout event
this.index = lindexof(#m,this.def); // is current gani listed in the list of default ganis?
if (this.index >= 0) setplayerprop #m,#I(this.new,this.index); // if it is, set player gani to the corresponding gani in the list of new custom ganis
timeout = .05; // continue timeout
}