View Single Post
  #3  
Old 07-14-2007, 02:48 AM
Cherrykao Cherrykao is offline
Banned
Join Date: Apr 2007
Posts: 37
Cherrykao is on a distinguished road
yes indeed, i was speculating that. what i want to do is simply pass an integer from 1 - 16 to the gani and then the gani will play a specific wave file based on the number it was passed. so to do this i would do:

// In the instrument weapon code
PHP Code:
setani("flute2"1); 
but then, how would the code look inside the gani (when i open the gani up in a text editor to read what variable was passed to it)??

// In the gani:
PHP Code:
SCRIPT 
  
if (params[0] == 1) {
    
play("flute1.wav");
  }
  else (
params[0] == 2) {
    
play("flute2.wav");
  }
SCRIPTEND 
is that how it would look inside the gani file?
Reply With Quote