Jump to content
mcnools

"Boss Defeated"-script (slowmo, camera showing boss etc.) HELP NEEDED

Recommended Posts

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

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
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

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

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

Thanks for your replies, I will experiment with some of these ideas. :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×