UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Changing an entity model in script

broken avatar :(
Created 12 years ago
by daedra descent
0 Members and 1 Guest are viewing this topic.
1,843 views
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
How do i change an entity model via script?
Marked as best answer by daedra descent 12 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 January 2014
Last active: 2 months ago
Posts
143
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
nabaro's Groups
nabaro's Contact & Social Linksgamerblast11chelseafan122099nabaro
Code Snippet
Plaintext
main()
{
        entity = getEnt("entity", "targetname");
        entity setmodel("model");
}

I'm not sure if you need a precache, if so, then add this to the top of the main function:

Code Snippet
Plaintext
PrecacheModel("model");

Post Merge: April 25, 2014, 01:45:00 am
"Model" of course being the name of the model in raw\xmodel.
Last Edit: April 25, 2014, 01:45:00 am by nabaro
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Code Snippet
Plaintext
main()
{
        entity = getEnt("entity", "targetname");
        entity setmodel("model");
}

I'm not sure if you need a precache, if so, then add this to the top of the main function:

Code Snippet
Plaintext
PrecacheModel("model");

Post Merge: April 25, 2014, 01:45:00 am
"Model" of course being the name of the model in raw\xmodel.

Thanks.
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 3 years ago
Posts
5,544
Respect
6,646Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
You couldn't have found this yourself? lol. Probably the most obvious place would be _zombiemode_perks.gsc.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 January 2014
Last active: 2 months ago
Posts
143
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
nabaro's Groups
nabaro's Contact & Social Linksgamerblast11chelseafan122099nabaro
Yeah, that's where I got it.  :)

 
Loading ...