Posts
11
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
Though when you shoot at it, the ball bounces around like a person dribbling at it. My goal is to somehow make the ball deflate. This model, of course, was only a test. I was more focused upon using a custom car I exported a while back ago. I am trying to get the car to blow up, much like the stock ones. I have everything working except the spawn of the new destroyed model. Here's my model's keys and values in Radiant:targetname: destr_murci
classname: dyn_model
type: destruct
physpreset: jeepride_boulder
health: 250
model: gg_murci
angles: 0 270 0
origin: -1464.4 -2240.6 1.5
destroyefx: fx_vehicle_explosion main()
{
precachemodel("gg_murci_nowin");
thread testFunction();
isDestroyed = false;
}
testFunction()
{
// Gets old model.
oldModel = getEnt( "destr_murci", "targetname" );
// Check to see if the model is gone, not sure if this will even work. I can't test as i have no tools.
if(oldModel == null)
isDestroyed = true;
else if(oldModel != null)
isDestroyed = false;
// If the model is destroyed then spawn the model at the same position as the old one, not sure if the angles has to be set as well
if(isDestroyed)
{
newModel = spawn( "script_model", oldModel.origin );
newModel setModel( "gg_murci_nowin" );?
}
}
rawfile,maps\_custommodels.gsc
xmodel,gg_murci_nowin


oldModel setModel( "gg_murci_nowin" );