View Single Post
  #5  
Old 02-19-2006, 01:41 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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 >= 0setplayerprop #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.
Reply With Quote