Jump to content

Recommended Posts

Use the setVehicleInit command because it's a server side fnc ;)

---------- Post added at 09:27 AM ---------- Previous post was at 09:24 AM ----------

It's not working, turning into a seagull. what I'm doing wrong? Do I need to change something else?

Did you set up the description.ext, right?

Noticed a bug in the latest version (may have been there before) but never tried the BTC_injured_marker setting:

Error in expression <] setMarkerTextLocal format ["F.A. %1", name _unit];format ["FA_%1", _pos] setm>
 Error position: <name _unit];
format ["FA_%1", _pos] setm>
 Error Generic error in expression

Is the last version? I didn't change anything there and it worked for me. I'll check it later! I'm working on the =BTC= Logistic for A3 atm so...

Share this post


Link to post
Share on other sites
No mate.

Disable respawn button it's one thing, disable the respawn another one.

To disable the respawn at all set:

BTC_active_lifes    = 1;
BTC_lifes           = 1;

@Magenta

It's not that hard create the code for me, but test it out :p

You have to think fast :p

I'm sorry if this sounds stupid but I checked all my script files in the BTC folder and ctrl+f'ed "life" with no results in any of them. Should I add it or am I just using a too old version of the script or something? If I have to add it, to which file? Thanks.

Share this post


Link to post
Share on other sites

The version 0.6 seems to have problems if used together with the Virtual Ammobox, cause everytime i tried to respawn, the screen remained black and i got insta spawned back in my death position, forcing me to restart the map. We tested that out on a multiplayer server with 2 players and the new save after death values disabled and enabled.

Version 0.5 is still working like a charm together with the Virtual Ammobox.

Share this post


Link to post
Share on other sites
The version 0.6 seems to have problems if used together with the Virtual Ammobox, cause everytime i tried to respawn, the screen remained black and i got insta spawned back in my death position, forcing me to restart the map. We tested that out on a multiplayer server with 2 players and the new save after death values disabled and enabled.

Version 0.5 is still working like a charm together with the Virtual Ammobox.

Yeah, happened to me as well. The blackscreen is turned off in the revive_init, but that black screen stays.

Share this post


Link to post
Share on other sites

Could you send me the params you set?

Maybe i could take a look at it.

Share this post


Link to post
Share on other sites

BTC_revive_time_min = 5;

BTC_revive_time_max = 600;

BTC_who_can_revive = ["Man"];

BTC_disable_respawn = 0;

BTC_respawn_gear = 0;

BTC_active_lifes = 1;

BTC_lifes = 10;

BTC_black_screen = 0;//Black screen + button while unconscious or action wheel and clear view

BTC_action_respawn = 0;//if black screen is set to 0 you can choose if you want to use the action wheel or the button. Keep in mind that if you don't use the button, the injured player can use all the action, frag too....

BTC_respawn_time = 10;

BTC_active_mobile = 0;//Active mobile respawn (You have to put in map the vehicle and give it a name. Then you have to add one object per side to move to the mobile (BTC_base_flag_west,BTC_base_flag_east) - (1 = yes, 0 = no))

BTC_mobile_respawn = 0;//Active the mobile respawn fnc (1 = yes, 0 = no)

BTC_mobile_respawn_time = 30;//Secs delay for mobile vehicle to respawn

BTC_need_first_aid = 1;//You need a first aid kit to revive (1 = yes, 0 = no)

BTC_pvp = 0; //(disable the revive option for the enemy)

BTC_injured_marker = 1;

BTC_vehs_mobile_west = [mobile_west_0];//Editable - define mobile west

BTC_vehs_mobile_east = [mobile_east_0];//Editable - define mobile east

Thats what i did set.

Edit: (BTC_base_flag_west,BTC_base_flag_east) is not causing the problems like i thought because it was already in version 0.5 too.

What i did is copy and pasted the 0.6 =BTC=_revive folder over the old, and reset my parameters to what it in 0.5 was and it gave me the black screen bug without initializing the respawn option.

Edited by Mordegar

Share this post


Link to post
Share on other sites
Use the setVehicleInit command because it's a server side fnc ;)

if this was for me, then I can say that I and someone else tryed this method and it did Not work and gave many script errors. If you can clarify, exactly how to implement it, I would greatly appreciate it!!

I tried this:

BTC_vehicle_mobile_respawn =

{

_veh = _this select 0;

_var = _this select 1;

_set = _this select 2;

_type = typeOf _veh;

_pos = getPos _veh;

_dir = getDir _veh;

waitUntil {sleep 1; !Alive _veh};

_veh setVariable [_set,0,true];

sleep BTC_mobile_respawn_time;

_veh = _type createVehicle _pos;

_veh setDir _dir;

_veh setVelocity [0, 0, -1];

_veh setVariable [_set,_var,true];

_resp = [_veh,_var,_set] spawn BTC_vehicle_mobile_respawn;

_veh setpos _pos;

_veh setVehicleInit "_veh addAction["<t color=#ff1111'>Virtual Ammobox</t>", "gear\open.sqf];";

};

And that didnt work so i tried this:

BTC_vehicle_mobile_respawn =

{

_veh = _this select 0;

_var = _this select 1;

_set = _this select 2;

_type = typeOf _veh;

_pos = getPos _veh;

_dir = getDir _veh;

waitUntil {sleep 1; !Alive _veh};

_veh setVariable [_set,0,true];

sleep BTC_mobile_respawn_time;

_veh = _type createVehicle _pos;

_veh setDir _dir;

_veh setVelocity [0, 0, -1];

_veh setVariable [_set,_var,true];

_resp = [_veh,_var,_set] spawn BTC_vehicle_mobile_respawn;

_veh setpos _pos;

_veh setVehicleInit "this addAction[""<t color=#ff1111'>Virtual Ammobox</t>"", ""gear\open.sqf"];";

processInitCommands;

};

And it worked, However, if the MHQ is destroyed exactly where it was spawned at game start.. It will spawn on the busted MHQ and fly in the air..

so I added this to stop that from happening.

sleep BTC_mobile_respawn_time;

deleteVehicle _veh;

sleep 0.1;

_veh = _type createVehicle _pos;

If this was not aimed at me then please disregard :)

Thanks for the Script

Edited by Lordprimate

Share this post


Link to post
Share on other sites

@Lordprimate

I'm glad you get it work!

As you found out you can't use:

_veh setVehicleInit "_veh blablabla

but you have to use the variable this:

_veh setVehicleInit "this blablabla

@Mordegar

Could i ask you to test the script without the Virtual Ammobox? I'd like to understand if it's a conflict or an error...

Share this post


Link to post
Share on other sites

Ok, i've removed the Ammobox and it's still not working so it's not the Virtual Ammobox.

Do i have to set all of the triggers that you have built into your latest version 0.6 in your testmission? Maybe thats the reason...

Edit: Ok, tried to setup all of those triggers and it's still giving me the black screen.

Edited by Mordegar

Share this post


Link to post
Share on other sites

You don't need at all the radio options. I use them just for testing

Share this post


Link to post
Share on other sites

I've double checked all Description and Init entries and it's still not working, i have no idea what the fault is. :(

As i said, 0.5 is working like a charm, but 0.6 won't do the trick.

Share this post


Link to post
Share on other sites

I am using VAS (not the latest version released today the one before it) and most recent revive and have no issues. I am not running VAS on the MHQ, just an empty supply box.

Share this post


Link to post
Share on other sites
I am using VAS (not the latest version released today the one before it) and most recent revive and have no issues. I am not running VAS on the MHQ, just an empty supply box.

Do you mind posting your Revive_init parameters? Thanks

Share this post


Link to post
Share on other sites

who'm ever is haveing problems with this script and using vas i can guarantee that YOU are doing something wrong!! this works PERFECTLY!! As I am using the latest revive and VAS scripting in my missions!

This script works great, don't understand how you are all having problems. since its release a few others and I have been using this perfectly with VAS, along with several other scripts .. Sometimes its best to just start from scratch and copy and paste directly from the directions..

Is it possible?? May I suggest a possible Third MHQ for Independent's...

Edited by Lordprimate

Share this post


Link to post
Share on other sites
Can you explain to me how to do this?

In the =BTC=_revive_init.sqf set:

BTC_disable_respawn = 1;

@Lordprimate

Thank you mate!

It won't be hard to add it, next version ;)

Share this post


Link to post
Share on other sites
Do you mind posting your Revive_init parameters? Thanks

Sure... at work right now so I won't have access to it until later tonight but I'll post it up.

Share this post


Link to post
Share on other sites

nice script, but is there a way to only get the revive part, and no respawn? and if time runs out you die and become a bird/spectator/something.

Share this post


Link to post
Share on other sites

Hi

Sorry for my english, i'm french.

Congratulations for your script, i very like it.

It's possible add 2 mobile respawn west ?

Share this post


Link to post
Share on other sites
Hi

Sorry for my english, i'm french.

Congratulations for your script, i very like it.

It's possible add 2 mobile respawn west ?

Thank you Dakost!

You already can do that, just add the name to the array ;)

Share this post


Link to post
Share on other sites

Hi my mission with Revive, that worked 1 hour ago, dosent seem to have Revive anymore, after the DEV update? :confused:

Edited by EgegaardDK

Share this post


Link to post
Share on other sites
Do you mind posting your Revive_init parameters? Thanks

Here you go:

BTC_revive_time_min = 5;
BTC_revive_time_max = 600;
BTC_who_can_revive  = ["Man"];
BTC_disable_respawn = 0;
BTC_respawn_gear    = 1;
BTC_active_lifes    = 1;
BTC_lifes           = 10;
BTC_black_screen    = 0;
BTC_action_respawn  = 0;
BTC_respawn_time    = 10;
BTC_active_mobile   = 1;
BTC_mobile_respawn  = 1;
BTC_mobile_respawn_time = 300;
BTC_need_first_aid = 1;
BTC_pvp = 0;
BTC_injured_marker = 1;
BTC_vehs_mobile_west = [mobile_west_0];
BTC_vehs_mobile_east = [];

mobile_west_0 is an unarmed Hunter

VAS script runs on a Blufor Supply Box

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

×