mcnools 62 Posted February 24, 2018 Hello, I'm working on a little mission for some friends where in the end, we need to defeat a "boss" (it's not very serious as you might have guessed), now, scripting has never been my strong side, so I figured I'd ask for help. I would like to have a script that, when the boss dies (NOT(Alive Boss)) the currently playing music (let's call it "bossfightmusic" for simplicity) stops, the game goes into slowmo for a few seconds and the camera moves to show the boss falling down dead, preferably while a message saying "boss defeated" or similar shows up on screen and another more triumphant song starts playing (let's call it "winsong"), is this even possible? (oh, and it needs to work on dedicated servers as well, haha). Share this post Link to post Share on other sites
Crielaard 434 Posted February 24, 2018 Hi McNools https://community.bistudio.com/wiki/setAccTime As you can see, time acceleration does not work in MP. But where there are problems there are sollutions. You may be able to use a death animation and make it run at a slower pace. Combined with a slow camera motion in a 3d camera executed globally, it may work. However, you may be better off recording a video and run that uppon his death. Share this post Link to post Share on other sites
mcnools 62 Posted February 24, 2018 34 minutes ago, Crielaard said: Hi McNools https://community.bistudio.com/wiki/setAccTime As you can see, time acceleration does not work in MP. But where there are problems there are sollutions. You may be able to use a death animation and make it run at a slower pace. Combined with a slow camera motion in a 3d camera executed globally, it may work. However, you may be better off recording a video and run that uppon his death. Ah, darn! I guess I'll have to skip the slowmo-part then. :( Share this post Link to post Share on other sites
Crielaard 434 Posted February 24, 2018 No like I said, you can still do it. Record a video of the Boss's death and play it on 'Win' Share this post Link to post Share on other sites
pierremgi 4737 Posted February 25, 2018 use setAnimSpeedCoef for slowing the unit's motion. Unfortunately, that doesn't work on ragdoll. For example, in the init field of the boss: this addEventHandler ["hit", { (_this select 0) setAnimSpeedCoef 0.1 }]; I don't have better. Share this post Link to post Share on other sites
mcnools 62 Posted February 26, 2018 Thanks for your replies, I will experiment with some of these ideas. :) Share this post Link to post Share on other sites
HazJ 1288 Posted February 26, 2018 You could also try this: https://community.bistudio.com/wiki/setAnimSpeedCoef Share this post Link to post Share on other sites
pierremgi 4737 Posted February 27, 2018 4 hours ago, HazJ said: You could also try this: https://community.bistudio.com/wiki/setAnimSpeedCoef As I said on Saturday, that doesn't work on ragdoll. Share this post Link to post Share on other sites
HazJ 1288 Posted February 27, 2018 @pierremgi - Ah... Yes. My bad. Share this post Link to post Share on other sites