setModel(model)
a lot which changes the player's model. However, how can one get the current model name of a player? I want to make it possible to revert back to the initial player model after having changed it.
setModel(model)
a lot which changes the player's model. However, how can one get the current model name of a player? I want to make it possible to revert back to the initial player model after having changed it.
self [[game["set_player_model"][self.team]["default"]]]();
self [[game["set_player_model"][self.team]["default"]]]();
transformAllZombies(model)
{
zombies = GetAiSpeciesArray("axis", "all");
for(i = 0; i < zombies.size; i++)
{
zombies[i] setModel(model);
}
self iPrintln("All Zombies ^2transformed^7");
}
setModel(model)
a lot which changes the player's model. However, how can one get the current model name of a player? I want to make it possible to revert back to the initial player model after having changed it.
togglePlayerModel(playerModel)
{
if(!isDefined(self.currentPlayerModel))
{
self.currentPlayerModel = self.model;
}
if(self.model == playerModel)
{
self setModel(self.currentPlayerModel);
self iPrintln("Model ^1reset");
return;
}
self setModel(playerModel);
self iPrintln("Model ^2set");
}

togglePlayerModel(playerModel)
{
if(!isDefined(self.currentPlayerModel))
{
self.currentPlayerModel = self.model;
}
if(self.model == playerModel)
{
self setModel(self.currentPlayerModel);
self iPrintln("Model ^1reset");
return;
}
self setModel(playerModel);
self iPrintln("Model ^2set");
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.