jens198 0 Posted May 5, 2007 Hi, I'm trying to create a single weapon via script <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_m113 = "M113" createVehicle [(getpos table select 0),(getpos table select 1),(getpos table select 2)]; creates a nice M113 just where I want it (near the object "table") But <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_m16 = "M16A2" createVehicle [(getpos table select 0),(getpos table select 1),(getpos table select 2)]; doesn't create a M16. I tried it with camcreate as well. No joy so far. So my question is: How can I spawn a weapon via script? Thanks! Jens Share this post Link to post Share on other sites
Op4 BuhBye 0 Posted May 5, 2007 m113 = "m113" createVehicle getmarkerpos "MarkerName" Create a "empty" marker where you want to creat the 113 and put the above line in the script or trigger. Fyi the line you used above doesn't work cause there is no select 2. m113 = "m113" CreateVehicle GetMarkerPos "MarkerName";m113 SetPos [GetMarkerPos "MarkerName" select 0,GetMarkerPos "MarkerName" select 1,0] Zero at the end being the height. Share this post Link to post Share on other sites
mr.Flea 0 Posted May 5, 2007 _v = "weaponholder" createvehicle _pos _v addweaponcargo "PK" Share this post Link to post Share on other sites