View Single Post
  #1  
Old 12-31-2009, 09:13 AM
thatdwarf thatdwarf is offline
Former UN Dev Admin
Join Date: Nov 2005
Posts: 42
thatdwarf is on a distinguished road
Replaceani and ganiparams

Hey everybody,

My question today involves replaceani and the PARAM1 of a gani file. I have three ganis that rely on the value of the PARAM1 part of the gani file. They are a walk, idle, and attack gani.

Is there a way to set PARAM1 via a script?

for example:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
replaceani("idle","newidle");
  
replaceani("walk","newwalk");
  
replaceani("sword","newattack");

  
player.params[1] = "blah";

Something like that? (No, the above does not work)

Thanks in advance!
Reply With Quote