Welcome to the Iron Front Fan Forums!
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
OuedMeliz01

Avatar / Picture

Captain
Registered:
Posts: 223
Reply with quote  #1 
Hello Guys,

in the last few months I have seen if you can program the doors of vehicles rise the doors. And I found out. There are various scripts from me.
In the script I have taken as a model to me the construction of BS.

1. Script is: Co-Driver door of all two-door vehicles.
2.
Script is: Driver door of all two-door vehicles.
3.
Script is: Hatch

i will make in next time a script for
windshield wipers and Kübelwagen doors.

Photos:

http://cloud-3.steampowered.com/ugc/506951799509567322/45859C8948D4E5E1B1FABBDE8191D0381CF0A56D/

http://cloud-4.steampowered.com/ugc/506951799509560280/57B12C6F342CE68CF9D04EE7128BCC2C8086598B/[/CODE]

1. Script: Co-Driver door of all two-door vehicles (OnAction_CoDriverDoor.sqf).

//////////////////////////////////////////////////////////////////
// Function file for Iron Front
// Created by: OuedMeliz01
//////////////////////////////////////////////////////////////////

//==============================================================================================================
//
//
//
//Place the following two lines into your truck init-line:
//
// this addAction ["Open Co-Driver Door", "OnAction_CoDriverDoor.sqf", ["Open"], 0, false, true, "", "true"];
// this addAction ["Close Co-Driver Door", "
OnAction_CoDriverDoor.sqf", ["Close"], 0, false, true, "", "true"];
// 
//======================================================================================================================
 
private ["_truck","_action"];

_truck = _this select 0;
if (isnil ("_truck")) exitWith { hint "no truck found"; sleep 1};
 
_action = (_this select 3) select 0;

if (isnil ("_action")) then
{
 _action = "Open";
};

switch (_action) do
{
 case "Open":
 {
 _truck animate ["door_2_1_rotate",1];
 }; 
 case "Close":
 {
 _truck animate ["door_2_1_rotate",0];
 };
 default
 {
 _truck animate ["door_2_1_rotate",0];
 };
};

sleep 2;



Must write this in the Init-Line of the Vehicle:

To Open:
this addAction ["Open Co-Driver Door", "OnAction_CoDriverDoor.sqf", ["Open"], 0, false, true, "", "true"];


To Close: 
this addAction ["Close Co-Driver Door", "OnAction_CoDriverDoor.sqf", ["Close"], 0, false, true, "", "true"];




2. Script: Driver door of all two-door vehicles (OnAction_DriverDoor.sqf).

//////////////////////////////////////////////////////////////////
// Function file for Iron Front
// Created by: OuedMeliz01
//////////////////////////////////////////////////////////////////

//===================================================================================================================
//
//
//
// Usage: Place the following two lines into your truck init-line:
//
// this addAction ["Open Driver Door", "OnAction_DriverDoor.sqf", ["Open"], 0, false, true, "", "true"];
// this addAction ["Close Driver Door", "OnAction_DriverDoor.sqf", ["Close"], 0, false, true, "", "true"];
// 
//======================================================================================================================
 
private ["_truck","_action"];

_truck = _this select 0;
if (isnil ("_truck")) exitWith { hint "no truck found"; sleep 1};
 
_action = (_this select 3) select 0;

if (isnil ("_action")) then
{
 _action = "Open";
};

switch (_action) do
{
 case "Open":
 {
 _truck animate ["door_1_1_rotate",1];
 }; 
 case "Close":
 {
 _truck animate ["door_1_1_rotate",0];
 };
 default
 {
 _truck animate ["door_1_1_rotate",0];
 };
};

sleep 2;




Must write this in the Init-Line of the Vehicle:

To Open:
this addAction ["Open Driver Door", "OnAction_DriverDoor.sqf", ["Open"], 0, false, true, "", "true"];


To Close: 
this addAction ["Close Driver Door", "OnAction_DriverDoor.sqf", ["Close"], 0, false, true, "", "true"];




3. Script: Tailgate for all two-door vehicles (OnAction_tailgate.sqf).

//////////////////////////////////////////////////////////////////
// Function file for Iron Front
// Created by: BS
//////////////////////////////////////////////////////////////////

//===================================================================================================================
//
//
//
// Usage: Place the following two lines into your truck init-line:
//
// this addAction ["Open Tailgate", "OnAction_tailgate.sqf", ["Open"], 0, false, true, "", "true"];
// this addAction ["Close Tailgate", "OnAction_tailgate.sqf", ["Close"], 0, false, true, "", "true"];
// 
//======================================================================================================================
 
private ["_truck","_action"];

_truck = _this select 0;
if (isnil ("_truck")) exitWith { hint "no truck found"; sleep 1};
 
_action = (_this select 3) select 0;

if (isnil ("_action")) then
{
 _action = "Open";
};

switch (_action) do
{
 case "Open":
 {
 _truck animate ["doorzad_rotate",1];
 }; 
 case "Close":
 {
 _truck animate ["doorzad_rotate",0];
 };
 default
 {
 _truck animate ["doorzad_rotate",0];
 };
};

sleep 2;




Must write this in the Init-Line of the Vehicle:

To Open:
this addAction ["Open Tailgate", "OnAction_tailgate.sqf", ["Open"], 0, false, true, "", "true"];


To Close: 
this addAction ["Close Tailgate", "OnAction_tailgate.sqf", ["Close"], 0, false, true, "", "true"];





__________________
OuedMelizChannel: http://www.youtube.com/user/OuedMelizChannel
0
BRS

Captain
Registered:
Posts: 194
Reply with quote  #2 
Quote:
There are various scripts from me.

Hm, all scripts are really done by you  QuedMeliz01 ?
Have a look here: http://ironfront.forumchitchat.com/post/open-tailgates-by-onaction-6266675
You copied parts 1:1, the best is script 3 [smile]

Happy Hollidays all!
0
OuedMeliz01

Avatar / Picture

Captain
Registered:
Posts: 223
Reply with quote  #3 
UPDATED WITH VIDEO! MAYBE SOMEONE CAN MAKE FOR ARMA 2 & 3 A ADDON WITH THE SCRIPTS!
__________________
OuedMelizChannel: http://www.youtube.com/user/OuedMelizChannel
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.