UGX-Mods

Call of Duty 5: World at War => Help Desk => Topic started by: RichGaming on May 31, 2016, 10:51:24 am

Title: Animating Model Along a Path
Post by: RichGaming on May 31, 2016, 10:51:24 am
So as the title says, I was wondering if and how a model can be animated to move along a certain path at the start of the game. I would also like, if possible, for an ambient sound to play at a specific point along the path. I want it to seem as if a vehicle is driving past a building at the beginning of a game and then into the distance. If anyone could help me to make this possible I would greatly appreciate it. Thank you!
Title: Re: Animating Model Along a Path
Post by: whippytrout on May 31, 2016, 11:22:18 am
So what I would do is use a vehicle and setup vehicle nodes in your map. That way the vehicle model would follow that path and you could make it go wherever your heart desires.  ;D
Title: Re: Animating Model Along a Path
Post by: RichGaming on May 31, 2016, 12:34:47 pm
So what I would do is use a vehicle and setup vehicle nodes in your map. That way the vehicle model would follow that path and you could make it go wherever your heart desires.  ;D

Yeah, I was linked a tutorial already by someone else explaining the same thing. Thanks for the help!
Title: Re: Animating Model Along a Path
Post by: whippytrout on May 31, 2016, 01:02:13 pm
Cool! No Problem.  ;)
Title: Re: Animating Model Along a Path
Post by: tudark on May 31, 2016, 04:16:38 pm
hi guys could someone point me in the direction of that tutorial , thanks
Title: Re: Animating Model Along a Path
Post by: whippytrout on May 31, 2016, 04:21:46 pm
This is a vehicle script and prefab that you can edit. To make it a non rideable vehicle just go into the script and comment out or delete the parts where players are attached to the jeep.

http://ugx-mods.com/forum/index.php?topic=1817.msg17141#msg17141 (http://ugx-mods.com/forum/index.php?topic=1817.msg17141#msg17141)
Title: Re: Animating Model Along a Path
Post by: tudark on May 31, 2016, 05:31:22 pm
This is a vehicle script and prefab that you can edit. To make it a non rideable vehicle just go into the script and comment out or delete the parts where players are attached to the jeep.

http://ugx-mods.com/forum/index.php?topic=1817.msg17141#msg17141 (http://ugx-mods.com/forum/index.php?topic=1817.msg17141#msg17141)
Thanks Whippy :)
Title: Re: Animating Model Along a Path
Post by: RichGaming on May 31, 2016, 09:50:06 pm
So I tried following this tutorial (http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_SP_-_Vehicle_Implementation (http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_SP_-_Vehicle_Implementation)) to make a vehicle drive past the map but none of it seems to be working. It's just a default_vehicle sitting there not moving. Any help is appreciated. Thanks!
Title: Re: Animating Model Along a Path
Post by: whippytrout on May 31, 2016, 11:05:11 pm
So I tried following this tutorial (http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_SP_-_Vehicle_Implementation (http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_SP_-_Vehicle_Implementation)) to make a vehicle drive past the map but none of it seems to be working. It's just a default_vehicle sitting there not moving. Any help is appreciated. Thanks!
This is a vehicle script and prefab that you can edit. To make it a non rideable vehicle just go into the script and comment out or delete the parts where players are attached to the jeep.

http://ugx-mods.com/forum/index.php?topic=1817.msg17141#msg17141 (http://ugx-mods.com/forum/index.php?topic=1817.msg17141#msg17141)

Use the link above I posted. I used it for what you are doing and it works great. Just make sure you comment or delete the lines in the .gsc file that attach players to tags once the vehicle is triggered. Otherwise when you trigger the vehicle all the players will attach to the jeep. lol Also you can change the trigger_use to a  trigger multiple so that once players spawn into your map they touch the trigger automatically which then starts the vehicle. It's all in the prefab and in the .gsc.  It will just take a few minor adjustments ;)

Let me know if you need me to help you with the script.
Title: Re: Animating Model Along a Path
Post by: RichGaming on May 31, 2016, 11:26:57 pm
Use the link above I posted. I used it for what you are doing and it works great. Just make sure you comment or delete the lines in the .gsc file that attach players to tags once the vehicle is triggered. Otherwise when you trigger the vehicle all the players will attach to the jeep. lol Also you can change the trigger_use to a  trigger multiple so that once players spawn into your map they touch the trigger automatically which then starts the vehicle. It's all in the prefab and in the .gsc.  It will just take a few minor adjustments ;)

Let me know if you need me to help you with the script.

Ahh ok, brilliant. Will give it a go and see how it turns out. Thanks for the help! :D

Double Post Merge: June 01, 2016, 10:09:27 am
So I followed that tutorial that you posted and it all seems to be working apart from one issue. When the vehicle spawns it is the default vehicle instead of the custom model that I have applied to the vehicle. Does the vehicle have to be converted in a certain way or something because I don't know why this is happening.