Jump to content
Sign in to follow this  
Lowe

Respawning where you died?

Recommended Posts

I've just had a look through the searches but can't seem to find anything which will do quite what I want.

The mission is a bit of fun - a race/rally of sorts. I've set up a few markers around the map with various different vehicles at each marker. The idea is that you get to each marker in turn, swap to the new vehicle and then race to the next way point. First to finish wins - fairly simple stuff.

The trouble however is that during play tests with a few clan mates it got a bit heated. :lol: A few people got rammed and crashed (all part of the fun) killing them in the process. The snag is they respawn back at the start line, effectively putting them a long, long way behind where the fun is.

Ideally I want them to be able to respawn where they died with a fresh new vehicle so they can carry on. Is this even possible? If not any suggestions as to what I might be able to do?

Thanks for reading. :) Any help muchly appreciated. :)

Share this post


Link to post
Share on other sites

Well I never, didn't know about respawn 2! Well that sorts the people - what about the vehicle? :)

Share this post


Link to post
Share on other sites
Well I never, didn't know about respawn 2! Well that sorts the people - what about the vehicle? :)

That might be a little more complicated.

Probably something like get position player and then a spawn vehicle.

No idea myself but you could give it a try.

Oh look whats on the top of the page...

http://forums.bistudio.com/showpost.php?p=1330718&postcount=1

Edited by BoneBoys

Share this post


Link to post
Share on other sites

Yes, that is a good respawn script. You'll want to use this as your init line of the vehicle.

veh = [this, 5, 10, 5, FALSE, TRUE] execVM "vehicle.sqf"

The True at the end tells the vehicle to respawn where it died.

Share this post


Link to post
Share on other sites

Guys - that's awesome, thanks very very much :)

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
Sign in to follow this  

×