OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: marcus3 on 12 Mar 2005, 22:42:51

Title: gun on table
Post by: marcus3 on 12 Mar 2005, 22:42:51
is there a way to put a gun on a table or something?
i saw this in some screen shot but cant find it now.
Title: Re:gun on table
Post by: Kyle Sarnik on 13 Mar 2005, 03:49:43
Yes:

1. First create a weapon holder (gun = "WeaponHolder" createvehicle [getpos table select 0, getpos table select 0, .75])

2. Add the weapon to the weapon holder (gun addmagazinecargo ["M16",1]; gun addweaponcargo ["M16",1]

3. Thats it there is no 3
Title: Re:gun on table
Post by: Silencer on 13 Mar 2005, 11:22:25
Someone has also made a tutorial from that.
It is in the editors depot.
Click here (http://www.ofpec.com/includes/download2.php?id=194) to download it.

Maybe you could learn from that tutorial?

Good Luck!
Title: Re:gun on table
Post by: marcus3 on 14 Mar 2005, 15:57:04
ok thanks