AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   the model refuses to change! (https://forums.alliedmods.net/showthread.php?t=12465)

XxAvalanchexX 04-16-2005 12:55

the model refuses to change!
 
Code:
 public fw_setmodel(ent,model[]) {     if(equali(model,"models/w_sealknife.mdl")) {         client_print(0,print_chat,"replaced %s^n",model);         entity_set_string(ent,EV_SZ_model,"models/japanrp/w_sealknife.mdl");         set_task(0.1,"shuriken_again",ent);     }  }  public shuriken_again(ent) {     if(is_valid_ent(ent)) {         entity_set_string(ent,EV_SZ_model,"models/japanrp/w_sealknife.mdl");         set_task(0.1,"shuriken_again",ent);     }  }

Yet it simply won't work, even with shuriken_again running over and over. It does catch fw_setmodel, it does realize it needs to change the model, and it does try... it just won't change. Any ideas?

Thanks.


All times are GMT -4. The time now is 10:00.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.