Jump to content
  • 0

Adding smoke to epoch events


Magz

Question

Hey guys, 

 

I want to add the corresponding color smoke to my Epoch Events (Military Crate, Supply Crate, Construction Crate, Treasure Crate). This way those loot boxes will become more of a PVP battle over it instead of two people searching the dot in different areas only to never come across each other..

 

What lines of code would I have to add to the four .sqf files?

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

Sorry almost posted really wrong stuff here, to many threads open. 

 

You cannot really just make the item spawn in already smoking. There are two ways to do this

 

1. You can make the AI throw them at enemies and have all but 1 of your AI bandits, have that 1 be a hero. The AI will throw smoke

 

2. You can make a trap kit that will set off when an AI steps on it, since they spawn there it will go off guaranteed when the mission starts

 

Ill find some code and get back to you when I test it a bit

Link to comment
Share on other sites

  • 0

He doesn't asks about "custom loot"? He asks for a piece of code that creates a smoke around/near the crates of the 4 side missions script. I'll see if I can code anything for you, I'm not promising anything, since I'm quite busy ^^. 

Link to comment
Share on other sites

  • 0

He doesn't asks about "custom loot"? He asks for a piece of code that creates a smoke around/near the crates of the 4 side missions script. I'll see if I can code anything for you, I'm not promising anything, since I'm quite busy ^^. 

 

Thanks Darihon, I thought this would be as simple as adding a couple lines of code directly after some other lines of code in the .sqf

 

Anyway, here is an event sqf that I run. I am pretty sure its the same as the regular ones since I havent really messed with anything other than the text and loot.

 

http://pastebin.com/CLtAturb

Link to comment
Share on other sites

  • 0

that script wouldn't work for me. When I added it, the event never came up and I had some errors in my RPT.

 

20:10:04 "RUNNING EVENT: Military on [2014,7,4,13,10]"
20:10:04 Error in expression <yz_serverObjectMonitor;
Link to comment
Share on other sites

  • 0
//Create Visible Marker with SMOKE

_dayTime = dayTime;
if (_dayTime > 6 && _dayTime < 18.5) then {
_smokeMarker = "SmokeShellRed" createVehicle getPosATL _loot_box;
_smokeMarker setPosATL (getPosATL _loot_box);
_smokeMarker attachTo [_loot_box,[0,0,0]];
};
if (_dayTime > 18.5 && _dayTime < 6) then {
_smokeMarker = "ARTY_Flare_Medium" createVehicle getPosATL _loot_box;
_smokeMarker setPosATL (getPosATL _loot_box);
_smokeMarker attachTo [_loot_box, [0,0,0]];
};

problem is, thats being called before the lootbox is created, that code should work

Link to comment
Share on other sites

  • 0
//Create Visible Marker with SMOKE

_dayTime = dayTime;
if (_dayTime > 6 && _dayTime < 18.5) then {
_smokeMarker = "SmokeShellRed" createVehicle getPosATL _loot_box;
_smokeMarker setPosATL (getPosATL _loot_box);
_smokeMarker attachTo [_loot_box,[0,0,0]];
};
if (_dayTime > 18.5 && _dayTime < 6) then {
_smokeMarker = "ARTY_Flare_Medium" createVehicle getPosATL _loot_box;
_smokeMarker setPosATL (getPosATL _loot_box);
_smokeMarker attachTo [_loot_box, [0,0,0]];
};

problem is, thats being called before the lootbox is created, that code should work

 

 

uh! What a noobie thing ! :) 

I haven't check this ...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...