IRONFRONT FANS FORUM
Register Latest Topics
 
 
 


Reply
  Author   Comment  
OuedMeliz01

Avatar / Picture

Captain
Registered:
Posts: 224
Reply with quote  #1 
Hello guys,

have a new script for you!
Its a script to Load Crates on a Opel Blitz!

VIDEO:


How to build:

1. Place a Opel Blitz.
2. Give the truck the name
Code:
Opel01
.
3. Place 6 Crates.
4. Give the Crates the names:
Code:
Crate 01: K1
Crate 02: K2
Crate 03: K3
Crate 04: K4
Crate 05: K5
Crate 06: K6

5. Place 6 Grass Cutter (small)
6. Give the Grass Cutter (small) the names:
Code:
Grass Cutter (small) 01:m1
Grass Cutter (small) 02:m2
Grass Cutter (small) 03:m3
Grass Cutter (small) 04:m4
Grass Cutter (small) 05:m5
Grass Cutter (small) 06:m6

7. Put the Grass Cutter (small) above the crates:
Code:
Grass Cutter-m1 move to Crate-K1
Grass Cutter-m2 move to Crate-K2
Grass Cutter-m3 move to Crate-K3
Grass Cutter-m4 move to Crate-K4
Grass Cutter-m5 move to Crate-K5
Grass Cutter-m6 move to Crate-K6

8. Place 2 Triggers near of the crates
9. Trigger 1:
Code:
Activation: Anybody
Axis a: 1000
Axis b: 1000
Ellipse and Repeatedly

Condition: (Fa2 distance Opel01) <= 10
On Act. Opel01_02 = Fa2 addaction ["Load Off","LoadOff.sqf"];

10. Trigger 2:
Code:
Activation: Anybody
Axis a: 1000
Axis b: 1000
Ellipse and Repeatedly

Condition: (Fa1 distance Opel01) <= 10
On Act. Opel01_01 = Fa1 addaction ["Load On","LoadOn.sqf"];

11. Place 2 Barrels Black
12. Name of Barrel Black 1
Code:
Fa2

13. Name of Barrel Black 2
Code:
Fa1

14. Make a .sqf with the name:
Code:
LoadOn.sqf

15. Write in the "LoadOn.sqf"
Code:
{if (side _x == civilian) exitwith {_x setfuel 0};} forEach _nearcars;  
Opel01 lock true;
Opel01 animate ["doorzad_rotate",1]; 
sleep 2.5;
K6 attachto [Opel01,[-1.0,-0.1,-0.3]];
sleep 2.5;
K5 attachto [Opel01,[+0.0,-0.1,-0.3]];
sleep 2.5;
K4 attachto [Opel01,[-1.0,-1.1,-0.3]];
sleep 2.5;
K3 attachto [Opel01,[+0.0,-1.1,-0.3]];
sleep 2.5;
K2 attachto [Opel01,[-1.0,-2.1,-0.3]];
sleep 2.5;
K1 attachto [Opel01,[0.0,-2.1,-0.3]];
sleep 2;
Opel01 animate ["doorzad_rotate",0]; 
Opel01 lock false;
sleep 1;

16. Make a .sqf with the name:
Code:
LoadOff.sqf

18. Write in the "LoadOff.sqf":
Code:
{if (side _x == civilian) exitwith {_x setfuel 0};} forEach _nearcars;  
Opel01 lock true;
Opel01 animate ["doorzad_rotate",1]; 
sleep 2.5;
K6 attachto [M1,[0.0,0.0,0.5]]; K6 setdir -221.941;
sleep 2.5;
K5 attachto [M2,[0.0,0.0,0.5]]; K5 setdir -221.941;
sleep 2.5;
K4 attachto [M3,[0.0,0.0,0.5]]; K4 setdir -221.941;
sleep 2.5;
K3 attachto [M4,[0.0,0.0,0.5]]; K3 setdir -221.941;
sleep 2.5;
K2 attachto [M5,[0.0,0.0,0.5]]; K2 setdir -221.941;
sleep 2.5;
K1 attachto [M6,[0.0,0.0,0.5]]; K1 setdir -221.941;
sleep 2;
Opel01 animate ["doorzad_rotate",0]; 
Opel01 lock false;
sleep 1;


NOW IT MUST WORK!
INFO: THE OPEL BLITZ MUST BE NEAR OF THE BARRELS (10 meters)

SO MUST LOOK IT ON THE MAP:
[image] 

HAVE A LOT OF FUN!
SORRY FOR MY BAD ENGLISH!

__________________
OuedMelizChannel: http://www.youtube.com/user/OuedMelizChannel
0
***=Major Mayhem=***

Avatar / Picture

IFR Team
Registered:
Posts: 299
Reply with quote  #2 

Looks simple enough, but I cannot get it to work.
Can you make a simple example template mission?
Somethings missing, I do not get a Load or unload option near the black barrels


~S~


__________________

Major Mayhems -Iron Reich Co-op Group
Mission Repository >>> Downloads <<<

0
OuedMeliz01

Avatar / Picture

Captain
Registered:
Posts: 224
Reply with quote  #3 
Quote:
Originally Posted by ***=Major Mayhem=***

Looks simple enough, but I cannot get it to work.
Can you make a simple example template mission?
Somethings missing, I do not get a Load or unload option near the black barrels


~S~




must see do you know a good page were i can upload it?

__________________
OuedMelizChannel: http://www.youtube.com/user/OuedMelizChannel
0
Gunter Severloh

Avatar / Picture

Admin
Registered:
Posts: 2,749
Reply with quote  #4 
Use dropbox https://www.dropbox.com/
create an account, you get 2gb of space for free, all you do is install it, and you will get a folder that you put the files into,
the files will get synced to a server where all your stuff will be at, you can create photo albums to if you want.

Once you have the file, i can host it for you on the MR.

__________________
0
Joe98

Avatar / Picture

Captain
Registered:
Posts: 196
Reply with quote  #5 
My ISP allows me some internet storage space. There is a good chance yours will too.

I have uploaded many files to my personal storage space.

.
0
OuedMeliz01

Avatar / Picture

Captain
Registered:
Posts: 224
Reply with quote  #6 
i am now some days offline will make it when i am back!
__________________
OuedMelizChannel: http://www.youtube.com/user/OuedMelizChannel
0
OuedMeliz01

Avatar / Picture

Captain
Registered:
Posts: 224
Reply with quote  #7 
and i will make a video how to insert ingame too
__________________
OuedMelizChannel: http://www.youtube.com/user/OuedMelizChannel
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.