
02-19-2006, 01:41 PM
|
|
Former Classic Staff
|
 |
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
|
|
Quote:
|
Originally Posted by ZeLpH_MyStiK
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
}
|
eugh, yea, the flaw with that as I was stating was that you have to override it. |
|
|
|