Changing Models with Scripts

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Broadus
Captain
Posts: 235
Joined: Mon Jan 30, 2006 5:35 am

Changing Models with Scripts

Post by Broadus »

After months and months, I've finally started working on my Friendly Faces mod again. I'm sure either none of you have heard of it or you've all forgotten. I'm simply modifying the original single player levels using only scripts.
So, I have these characters that I'd like to have different models. Since I can only work via script, I have to know how to change the model in the script.
So, let's say I've got a "level.friendly1", and he looks like a 2nd_ranger_private or whatever, but I want him to look like a 1st_ranger_medic.
How would I be able to do this with only scripting?
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

level.friendly1.model = path/to/the/new/model.tik
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Broadus
Captain
Posts: 235
Joined: Mon Jan 30, 2006 5:35 am

Post by Broadus »

Thanks! Worked perfectly, my good sir.
Image
Post Reply