Auss 208 Posted September 4, 2012 I thought this would take me 5 mins to do but I was wrong, I want to spawn binoculars and an AK on the ground, I've trolled through pages of posts but nothing. I can spawn them in ammo crates, I can spawn them on a player but nowhere does it tell me how I can spawn a weapon or binoculars/range finder or a gun on the ground for a player to pickup. Any help would be greatly appreciated. Share this post Link to post Share on other sites
riouken 15 Posted September 4, 2012 Ye old search says: http://forums.bistudio.com/showthread.php?133728-Placing-weapons&highlight=weaponHolder Share this post Link to post Share on other sites
Auss 208 Posted September 4, 2012 Thanks dude works a treat, just one question, how would I spawn them at a marker. One other thing - Why is it when I search for hours I find fuck all?...LOL ---------- Post added at 10:35 PM ---------- Previous post was at 10:29 PM ---------- Nevermind, all sorted cheers Share this post Link to post Share on other sites
cuel 25 Posted September 4, 2012 You would create the weapon holder at the marker position, instead of the (position player) getMarkerPos "myMarker" Share this post Link to post Share on other sites
Auss 208 Posted September 4, 2012 ok I can spawn binos at a marker and can also set the height and rotate them, only issue left is that they are upside down, is there anyway to flip them? or lay them flat. Share this post Link to post Share on other sites
panther42 48 Posted September 4, 2012 (edited) A couple of different ways you can try. setVectorDirAndUp although these [x,z,y] values are incorrect in the biki. Should be [x,y,z] Flip aircraft upside down Read the whole thread...good info BIS_fnc_setPitchBank Tensor math by Evil_Echo I haven't dug into this one yet... VectorUp - VectorDir bit of an explanation Edited September 4, 2012 by panther42 Share this post Link to post Share on other sites
kylania 568 Posted September 4, 2012 Just spawn everything 100m in the air and drop it where it falls. If it's good enough for Gravity it's good enough for me! Share this post Link to post Share on other sites
panther42 48 Posted September 4, 2012 That doesn't take care of the upside down situation Aussie states above... How are binoculars really upside down anyway...either way, don't they look fine? Are they spawning standing up, on the side you look through? Share this post Link to post Share on other sites
Auss 208 Posted September 4, 2012 Hey guys thanks for the replies. When they spawn they are on the eye reticle rather than the lens. I used the BIS_fnc_setPitchBank to set them the correct way up (thanks Panther42). The problem now is that when I try to spawn them inside a building OR on a table using a marker the little blighters have a mind of their own and spawn beside the table or beside the building. I've tried the setpos command to no avail. Any ideas? ---------- Post added at 06:57 AM ---------- Previous post was at 05:22 AM ---------- Ok fixed it using the can_collide function, thanks :) Share this post Link to post Share on other sites