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

Make a xmodel move up and down

broken avatar :(
Created 9 years ago
by CanadianTyler
0 Members and 1 Guest are viewing this topic.
1,714 views
broken avatar :(
×
broken avatar :(
Location: caNS
Date Registered: 29 August 2014
Last active: 8 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Why Not Zoidberg
×
CanadianTyler's Groups
I need help making a xmodel move up and down. I've made a model in Maya but I'm not sure how to animate it and export it to World At War.

I know how to export a model that's not animated. I'm just not sure how it works in World At War. All I want is for a model to move up and down and repeat that motion. (I'm making a target range :D )

Would I just animated it with keyframes and then export it like that ? Or do I have to use joints and stuff. If anyone knows let me know.
Last Edit: August 04, 2015, 05:59:22 pm by CanadianTyler
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 5 months ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
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.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
You could make an animation on the model, binding all the meshes to a joint and animate that joint, or you could just put it in as a script_model, and script it so it moves from left to right.

Code Snippet
Plaintext
while(1) {
    ent moveX(600,1);
    ent waittill("move_done");
    ent moveX(-600,1);
    ent waittill("move_done");
}

This way it will move 600 units on the X-axis and then move 600 units back, which I think is easier than animating it, exporting and scripting the anim, etc.

Lukkie1998
Last Edit: August 04, 2015, 06:19:32 pm by lukkie1998
broken avatar :(
×
broken avatar :(
Location: caNS
Date Registered: 29 August 2014
Last active: 8 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Why Not Zoidberg
×
CanadianTyler's Groups
You could make an animation on the model, binding all the meshes to a joint and animate that joint, or you could just put it in as a script_model, and script it so it moves from left to right.

Code Snippet
Plaintext
while(1) {
    ent moveX(600,1);
    ent waittill("move_done");
    ent moveX(-600,1);
    ent waittill("move_done");
}

This way it will move 600 units on the X-axis and then move 600 units back, which I think is easier than animating it, exporting and scripting the anim, etc.

Lukkie1998

Thanks i'll try that out. I'm new to scripting how do I add this script to my model ?
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 5 months ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
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.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Thanks i'll try that out. I'm new to scripting how do I add this script to my model ?

Add it to radiant using 2D view > script > script_model, Press N and give it this KvP: targetname - shoot_target .

Then open up your MAPNAME.gsc (usually in root/mods/MODNAME/maps), and add below _zombiemode::main();

Code Snippet
Plaintext
level thread shoot_target_move();

So it looks like (Or something like that):

Code Snippet
Plaintext
////////////////////////////
//// Zombiemode /////////////
////////////////////////////
_zombiemode::main();
level thread shoot_target_move();

Then add this to the bottom of the same file:

Code Snippet
Plaintext
shoot_target_move()
{
model = getEnt("shoot_target","targetname");

while(1) {
model moveX(600,1);
model waittill("move_done");
model moveX(-600,1);
model waittill("move_done");
}
}

Change the 600 and -600 corresponding to the distance you want the models to move, and change the 1 to the time you want the models to move from one side to another.

BTW the script only works for one Target!!!

Lukkie1998
Last Edit: August 04, 2015, 09:05:35 pm by lukkie1998
broken avatar :(
×
broken avatar :(
Location: caNS
Date Registered: 29 August 2014
Last active: 8 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Why Not Zoidberg
×
CanadianTyler's Groups
Add it to radiant using 2D view > script > script_model, Press N and give it this KvP: targetname - shoot_target .

Then open up your MAPNAME.gsc (usually in root/mods/MODNAME/maps), and add below _zombiemode::main();

Code Snippet
Plaintext
level thread shoot_target_move();

So it looks like (Or something like that):

Code Snippet
Plaintext
////////////////////////////
//// Zombiemode /////////////
////////////////////////////
_zombiemode::main();
level thread shoot_target_move();

Then add this to the bottom of the same file:

Code Snippet
Plaintext
shoot_target_move()
{
model = getEnt("shoot_target","targetname");

while(1) {
model moveX(600,1);
model waittill("move_done");
model moveX(-600,1);
model waittill("move_done");
}
}

Change the 600 and -600 corresponding to the distance you want the models to move, and change the 1 to the time you want the models to move from one side to another.

BTW the script only works for one Target!!!

Lukkie1998

Thank you very much. I'll try it :)

 
Loading ...