Drag&Drop System
---------------------------------------
---------------------------------------
v 0.2
Multiplayer: Yes
by [TSS] Cigar0
Download ExampleMission
You should drag bigger objects.
http://img5.fotos-hochladen.net/uploads/201403160000nd4bm72v6f.jpg
http://img5.fotos-hochladen.net/uploads/201403160000823rb0tzx1.jpg
http://img5.fotos-hochladen.net/uploads/2014031600006cjnsazf38.jpg
http://img5.fotos-hochladen.net/uploads/201403160000e04zxf2yod.jpg
http://img5.fotos-hochladen.net/uploads/2014031600000hx1qf7yzs.jpg
You can see, it works together with igiLoad ;-) That the goal.
Small Objects will be attached on the back. Its possible to edit every position of all small carryable objects.
http://img5.fotos-hochladen.net/uploads/201403160000jeui2yto0k.jpg
http://img5.fotos-hochladen.net/uploads/201403160000ce0d9ji7zo.jpg
http://img5.fotos-hochladen.net/uploads/2014031600002d854kt63h.jpg
http://img5.fotos-hochladen.net/uploads/201403160000ew08f3no1k.jpg
Install:
1)
Place a object on the map, best way is to place a object that supports igiLoad:
By example: Box_NATO_Ammo_F
Objectname: Chest1
2)
Write this in the init of the object:
You see, we will performe a addaction on this object with the Text "Drag". Its also possible to put a Icon instead of the Text:
"<img image='Take.jpg' size='4.8' shadow=1 />"
3) create a folder "Objects" in you missionfolder.
4) Now we need a sqf file, called "Attach_big.sqf"
Attach_big.sqf:
5)
"Detach_big.sqf":
---------------------------------------
---------------------------------------
---------------------------------------
Attach_small.sqf:
Detach_small.sqf
---------------------------------------
---------------------------------------
---------------------------------------
changelog 0.2
- added statusicons in the left cornor (dragging, carrying)
- small codechanges
---------------------------------------
---------------------------------------
---------------------------------------
Okay, now a question.
I'am busy and someone with the possibility of scripting could do something very good.
We need to implement the whole script in one init.sqf.
We need to activate the classnames with addaction.
Othervise you see:
You need to create 2 sqf file for one object. If you try to do this for 10 Objects, we need 20 sqf files.
We need a better way to do this.
If you like this idea, you will find maybe good information on this site:
TSS Forum
Its in german, i know ;-)