Jump to content
Sign in to follow this  
Vision16

Problem with Revive Script

Recommended Posts

I implemented Norrin's revive script into my mission and there are a couple problems.

1. When I die, I only respawn at my designated respawn point, and a revive dialog doesn't even show up. For example, if I die, the score menu comes up and it says "Wait (4) seconds to continue playing" and then I respawn at base.

2. When I start up my mission, I spawn in as one of the players (yes, they are "playable") and when I press start mission (Continue on map) after I finish receiving, a black screen comes up and says "Unit selected is unconscious. Please press escape and choose a playable unit from the units menu and try again."

Please help. I really want this mission working.

Edited by Vision16

Share this post


Link to post
Share on other sites

*EDIT*

Accidental double post

Edited by Vision16

Share this post


Link to post
Share on other sites

1. happens when no one is around who can revive you

2. your player is to close to the respawn marker....move him or the marker a little bit away. Dunno excactly how far it has to be, check the readme file.

Share this post


Link to post
Share on other sites

1. I tested out the mission with a friend and he could not revive me even when he was within 100 meters of me.

2. Thank you, I'll try that.

Share this post


Link to post
Share on other sites

*EDIT*

Accidental double post

Edited by Vision16

Share this post


Link to post
Share on other sites

try copy paste the contents of tutorial mission?

EDIT: also load the mission and copy all the triggers,markers,player names :P thats what i usally do implementing cool stuff like ac10/air scripts into my misisons

EDIT: Did you add this to your missions init.?

//Initialise revive script (this next line is needed for revive script)

server execVM "revive_init.sqf";

//Mission parameters

skiptime (paramsArray select 0);

sleep 5;

execVM "briefing.sqf";

if(true) exitWith {};

Edited by FelixK44

Share this post


Link to post
Share on other sites

Yes I have that in my init.sqf file but it's still just doing the respawn thing. It's like revive isn't enabled or something but I checked and it definitely is.

Share this post


Link to post
Share on other sites

The only thing I can say is you must of made a mistake somewhere in your mission does the example mission "revive_050.Desert_E" work correctly? I would test it but im not able to currently......

P.S.

BTW, If I understand it the scripts only work in MP not SP. :)

Share this post


Link to post
Share on other sites

The SQM for "revive_050.Desert_E" doesn't have any markers or anything else besides a player slot.

I just started working with this script, and seem to be having alot of the same problems.

Can someone post a simple example mission that illustrates the key features of the script?

Share this post


Link to post
Share on other sites

@FelixK44 The revive script works in both mp and sp, if you play in sp you get a hint saying singel player.

@Coyle[506th PIR] I just looked at the mission sqm and mine does have all the markers. If your missing the files, download it again.

Edited by zigzag

Share this post


Link to post
Share on other sites
I implemented Norrin's revive script into my mission and there are a couple problems.

1. When I die, I only respawn at my designated respawn point, and a revive dialog doesn't even show up. For example, if I die, the score menu comes up and it says "Wait (4) seconds to continue playing" and then I respawn at base.

I just now downloaded Norrin's revive script, did everything he said to do:

1. Place the following code into the init.sqf so that the revive scripts are activated when players join:

server execVM "revive_init.sqf";

2. Copy across the text from the description.ext files into your description.ext file.

3. Copy the revive_init.sqf file and revive_sqf, spect, and sound folders across to your mission directory.

5. Create respawn markers for each of the sides your playable units belong to (eg.Respawn_west) and a second marker on the map called Boot_Hill away from the action on an island for the dead units - make sure that the respawn marker and the boot_hill markers are more than 100 m apart and are at least that far from where the units start on the map. You also need to create a marker on the map called "center". This is the point towards which a player's body will wash ashore when the respawn in water dialog is chosen (best to put this marker

So I do 1, 2 and 3, only on number 3 he says " spect" and there's nothing in the desert revive mission that is spelled like that, so i'm guessing he means the the "RespawnSpecial" folder?

Odd that step "4" is missing, lol. Just noticed that.

For step 5, I put the "Respawn_West" marker (When it comes to "markers" I'm guessing Norrin means just place a marker with an empty marker and no thing changed from the default double clicking or with nothing changed on it except the name, leaving the text block empty?) about 20 feet away from the original spawn postition (just like Domination has set up where you spawn by the barracks then when you die you respawn next to the flag and ammo boxes).

Then I set up the marker named "Boot_Hill" over by Chak Chak on the southwest side of the map.

Then I set up a marker named "Center" on the beach in the lake on the NorthWest of the map East of the town of Nur.

For some reason the bots won't revive me and I can't revive them, we all just respawn.

Now something to keep in mind, is that iI'm the only real player, the other 6 are just AI bots, but since we download revive_ai_enabled, I wouldn't think that'd be an issue.

Anyone else had any luck with Norrin's revive this?

Share this post


Link to post
Share on other sites

Unconcious player is shown when your respawn_west or respawn_east is to close to the player start point I believe. Make sure there is a Boot Hill marker I always place it far from action but within map playable area.

Dont remember which file it is in, but you can adjust how far apart the Boot hill marker and respawn markers have to be. Each one is set to 50 default which causes both markers needing to be at least 100 meters apart

EveryTime I had the Unconciuos message it was due to my Respawn_west being to close to original deploy point. So I changed the value from 50 for respawn_west or east to 2 due to working with a tiny base.

Forgot to mention above in original Revive scripts you need to make sure you have a Start marker or go into revive_init.sqf and change Start to the name of the marker you want to spawn at. If you are using more than 1 team it gets a little more indepth.

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  

×