Jump to content
Sign in to follow this  
zooloo75

[SCRIPT] Explosive-To-Vehicle

Recommended Posts

Can you please finish the explosives script before moving onto another one. I would like the script errors fixed and a working respawn handler.

Share this post


Link to post
Share on other sites
Can you please finish the explosives script before moving onto another one. I would like the script errors fixed and a working respawn handler.

*hold on*

---------- Post added at 02:34 AM ---------- Previous post was at 02:09 AM ----------

Updated - Fixed script error and added a respawn EH. Download from the Dropbox link.

Share this post


Link to post
Share on other sites
*hold on*

---------- Post added at 02:34 AM ---------- Previous post was at 02:09 AM ----------

Updated - Fixed script error and added a respawn EH. Download from the Dropbox link.

Crashes the server and client on on respawn. Also not multiplayer compatible for local or dedicated. please test before uploading.

Share this post


Link to post
Share on other sites

Sorry for digging this thread back up, but I'm trying to create a mission, and need this script for the first part of the mission, but it won't work.

I'm brand new at this, and have next to no clue what I'm doing. So far, I've added the .sqf files to the mission folder, but am not sure what to do from there.

I'm using a custom loadout for my diver:

removeAllWeapons this; player addmagazines ["SatchelCharge_Remote_Mag", 5]; player addweapon "NVGoggles_opfor"; player addweapon "srifle_LRR_F"; player addmagazines ["7Rnd_408_Mag", 5]; {player addPrimaryWeaponItem _x} forEach ["optic_TWS"];

And the only way I've been able to get it to work is by deleting removeAllWeapons this;

So why does removing the diver's original gun have anything to do with whether the script runs?

Also, is there a way to not have my character yell out "there's a charge there!" for the doomed occupants of the boat to clearly hear? The whole point of this is to discretely place a charge on the bottom of a patrol boat, to set off later in the mission. And did anything come of being able to place the explosives from underneath the boat?

Thanks for your patience!

Share this post


Link to post
Share on other sites
Sorry for digging this thread back up, but I'm trying to create a mission, and need this script for the first part of the mission, but it won't work.

I'm brand new at this, and have next to no clue what I'm doing. So far, I've added the .sqf files to the mission folder, but am not sure what to do from there.

I'm using a custom loadout for my diver:

And the only way I've been able to get it to work is by deleting removeAllWeapons this;

So why does removing the diver's original gun have anything to do with whether the script runs?

Also, is there a way to not have my character yell out "there's a charge there!" for the doomed occupants of the boat to clearly hear? The whole point of this is to discretely place a charge on the bottom of a patrol boat, to set off later in the mission. And did anything come of being able to place the explosives from underneath the boat?

Thanks for your patience!

Not sure why your units load-out has anything to do with the interference of the script, my unit also has an entirely customized load out and it works just fine ;)

my unit load-out

removeAllWeapons RECON1; removeHeadgear RECON1; removevest RECON1; removeUniform RECON1; RECON1 addUniform "U_B_GhillieSuit"; RECON1 addWeapon "Laserdesignator"; RECON1 addMagazine "Laserbatteries"; RECON1 addvest "V_PlateCarrierSpec_rgr"; RECON1 addMagazine "20Rnd_762x51_Mag"; RECON1 addWeapon "srifle_EBR_F"; RECON1 addPrimaryWeaponItem "optic_Hamr"; RECON1 addPrimaryWeaponItem "muzzle_snds_B"; RECON1 addPrimaryWeaponItem "acc_pointer_IR"; RECON1 addItem "optic_Nightstalker"; RECON1 addMagazine "20Rnd_762x51_Mag"; RECON1 addMagazine "20Rnd_762x51_Mag"; RECON1 addMagazine "20Rnd_762x51_Mag"; RECON1 addMagazine "20Rnd_762x51_Mag"; RECON1 addmagazine "DemoCharge_Remote_Mag"; RECON1 addmagazine "DemoCharge_Remote_Mag"; RECON1 addmagazine "DemoCharge_Remote_Mag";

the only thing you need to do to make it work is add a init.sqf to your mission folder and edit with notepad++ add the following code line to your inti.sqf

waitUntil {time > 0};
execVM "Scripts\EtV.sqf";
waitUntil {!isNil "EtVInitialized"};
[player] call EtV_Actions;

place a folder named Scripts in your mission folder and put the EtV.sqf file provided by zooloo75 in that folder launch your mission and it should work on mission load I just tested it out. However bare in mind that it may depend on the vehicle you want to rig, some vehicles like AA armored units are not allowing you to rig it from behind only from the left right and front ...

(additional note)

the Scripts folder is not needed if you do not want to work that way "it is more my preferred way to set up my mission editing" because I just do not like to make a mess. You are able to place the EtV.sqf directly in your mission folder and remove the Scripts\ from the line execVM "Scripts\EtV.sqf"; in your init.sqf

to zooloo75

are you able to fix the following error?

_illogic = group server createUnit ["logic", Position _explosive, [], 0, "FORM"];

the error when using your script points to line 53 "code line above" in your provided EtV.sqf the error claims it is a bad variable ...

disregard the last, it seems that modsaholic does not contain the last updated script (download the one from drop box) error free ;)

best of regards

Edited by LiquitHQ

Share this post


Link to post
Share on other sites

Ack!

I was just about to start work on a similar script, when I noticed this one, already in existence.

Oh well, saves me some work :D

Share this post


Link to post
Share on other sites

Great script!!!

One slight issue: attaching it the bottom of a boat is very tricky. The placement area is very small and it takes alot of time moving around to find it. Anyway of improving this?

Thanks :-)

Share this post


Link to post
Share on other sites

is there any way of making this run in MP or add it to multiple units in the game? so every unit can do it?

Share this post


Link to post
Share on other sites
is there any way of making this run in MP or add it to multiple units in the game? so every unit can do it?

it should automatically do it as long as the person is carrying either a satchel or explosive charge, I've used it in mp and it works flawlessly

Share this post


Link to post
Share on other sites

No it doesnt run on multiplayer server. Its runing on dedicated server but when you rent server it wont run there :-/

Share this post


Link to post
Share on other sites

Em,Is Explosive can be attached only to Enemy's veh?

Share this post


Link to post
Share on other sites
Em,Is Explosive can be attached only to Enemy's veh?

Negative, any vehicle placed on the map

Share this post


Link to post
Share on other sites
Negative, any vehicle placed on the map

Only at enemies car works for me in mp(car spawned by VVS,may trouble in it?)

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  

×