Jump to content
Sign in to follow this  
sollrmartyn

Simple Smoking Script

Recommended Posts

This script will set some visual effects and a smoking soldier.

Unfortunately this script checks not if you have "cigarettes". I am working on a mod version.

Script: Simple Smoking Script

Version: 20140926

Clan: Sol-diers - Tactical gaming

Website: https://www.sol-diers.com

Hyperlink: https://sol-diers.com/?l=downloads&&load=10&&l3=3

Author: Martyn of Sol-diers

Mail: martyn@sol-diers.com

The download will contain the script and an example mission.

Download: https://sol-diers.com/arma3/scripts/3.zip

To start the script write in your init.sqf following text:

[] execVM "simple_smoking_script\init.sqf";

For question, help, critism, etc contact me via email, website or Teamspeak 3.

Your Martyn

Share this post


Link to post
Share on other sites

addaction didn't work for me because I don't use a dedicated server and this piece of code worked perfectly. i.e. didn't execute.

I had to change this in your script.

// Clients will exit here
// Just a dedicated server will
// execute the script
if (!isDedicated) exitWith {};

to...

// Clients will exit here
// Just a dedicated server will
// execute the script
if (!isServer && hasInterface ) exitWith {};

Share this post


Link to post
Share on other sites

Oh, this sounds cool. I was going to do the same thing. :cool:

Share this post


Link to post
Share on other sites
Oh, this sounds cool. I was going to do the same thing. :cool:

Nice to hear that I do things that the community wants to have :-D

@Beerkan - nice idea.

I never imagined to run the script on a non dedicated. (Maybe thats my personal thing, xD). If you changes works I will upload a new version of this script. Thanks for your report! Good work!

Your Martyn

Share this post


Link to post
Share on other sites

Alright I found a little problem with the addaction. The right script works for the multiplayer and singleplayer. But the addaction is not the best things. I will work on it or maybe try a combination of keys like strg + shift + 8.

Stay patient!

Your Martyn

Share this post


Link to post
Share on other sites

Awesome :) I had one in my last Fallout NV playthrough. The cigarette check would be sweet, any chance we could get some cubans too? :)

Share this post


Link to post
Share on other sites
addaction didn't work for me because I don't use a dedicated server and this piece of code worked perfectly. i.e. didn't execute.

I had to change this in your script.

// Clients will exit here
// Just a dedicated server will
// execute the script
if (!isDedicated) exitWith {};

to...

// Clients will exit here
// Just a dedicated server will
// execute the script
if (!isServer && hasInterface ) exitWith {};

!isDedicated means all clients including host (if hosted MP) but not dedicated server. !isServer should be enough.

Edited by Killzone_Kid

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  

×