Jump to content
Official BF Editor Forums
Sign in to follow this  

Handheld Weapons As Objects?

Recommended Posts

Last thing to go with my map is I would like weapons in a hanger like it were a storage for weapons. Everytime I load them map they disappear. I know why they do, but not how to get them to work like objects.

Any help would be appreciated.

Share this post

Link to post
Share on other sites

try this

create a new con file

named static_gun_1 (or something not used ingame)

add this text to the con file

with the geometry being that of your desired gun

GeometryTemplate.create BundledMesh static_gun_1

ObjectTemplate.create SimpleObject static_gun_1

ObjectTemplate.saveInSeparateFile 1

ObjectTemplate.geometry static_gun_1 <<<<<<<<<<<<<<<<<

then load and place the static_gun_1,as you would a static object

or you can make the gun,the shown geometry of a pickup kit,and use it as a pickup kit

Share this post

Link to post
Share on other sites

It sounds interesting to make it as a pickup kit. How would that be done?

And to have it as a static object, I went into the AK-47's folder in Weapons and I seen it already has a .con file with

GeometryTemplate.create BundledMesh rurif_ak47
CollisionManager.createTemplate rurif_ak47

ObjectTemplate.create GenericFireArm rurif_ak47
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.creator MBA-1:mba
ObjectTemplate.collisionMesh rurif_ak47
ObjectTemplate.mapMaterial 0 Collision_Material 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType 3
ObjectTemplate.geometry rurif_ak47

include rurif_ak47.tweak

Is that fine enough to use as a static object, and just delete the ai, animations, sound, and textures folders? It will just leave the meshes folder and .con and .tweak files like a regular object.

Edited by MattJoey2142

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...