Results 1 to 5 of 5

Thread: unitname action ["drop weapon",unitname,0,0,"weapo

  1. #1
    Lance Corporal
    Join Date
    Oct 3 2005
    Location
    Wewelsfleth, Germany
    Posts
    54
    Hello there,

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">W_1 action &#91;&#34;drop weapon&#34;,W_1,0,0,&#34;SA80&#34;&#93;
    [/QUOTE]

    A soldier will be threatend by another and will than put down his weapon.
    It would be nice if this would work. ***
    Does someone know how this works? ***
    All he does is knee down and still hold his gun.
    Which behaviour is necesary?

    All *** ***is *** .***

    Regards limmy3
    The only necessary for triumph of evil is for good men to do nothing.

  2. #2
    Master Gunnery Sergeant
    Join Date
    Dec 18 2005
    Location
    Adelaide, Australia
    Posts
    1,306
    Try not using W_1 as the 2nd array entry, you have the solder dropping the weapon to himself. Set it to "" instead to drop the weapon on the ground, or a set it to the name of a container object to drop it to that (no matter what distance the soldier is from the container).



    [self-promotion]
    OFP:R Island : Rezina
    [/self-promotion]

  3. #3
    Lance Corporal
    Join Date
    Oct 3 2005
    Location
    Wewelsfleth, Germany
    Posts
    54
    Author of the Thread
    Hello,

    it seams to work fine with BIS weapons. ***
    With the SA80 it does not work and with handguns neither.
    The soldier still keeps it in his hand.


    What are the two numbers after the second array? ***
    I had the feeling it was the direction the gun was pointing but I&#39;m not sure about that. The other idea could be they are for the magazines.

    But anyway thanks for your help.

    Regards limmy3 ***

  4. #4
    Master Gunnery Sergeant
    Join Date
    Dec 18 2005
    Location
    Adelaide, Australia
    Posts
    1,306
    The command works fine with the JAM3 weapons. Are you sure you are using the correct weapon class name? You can find the classname using the weapons command.

    As far as I know, no one knows what the 3rd and 4th array entries are. I suspect they are just fillers since the action command requires arrays with either 2 or 5 entrys. You can use any value and the command will still work. The most commonly used values I&#39;ve seen are 0 and 1. I&#39;ve just noticed the second entry is similar - you can set it to anything other than a containers name and the game will not complain.

    Here&#39;s a bad but working example:
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    soldier1 action &#91;&#34;drop weapon&#34;,&#34;JAM_AKS74U&#34;,&#34;JAM_AKS74U&# 34;,&#34;JAM_AKS74U&#34;,&#34;JAM_AKS74U&#34;&#93;
    [/QUOTE]

    The Official BI comref states :
    Format of action may be [type, target, param1, param2, param3]. Only type is required, target defaults to unit, param1, param2, param3 are type specific.




  5. #5
    Lance Corporal
    Join Date
    Oct 3 2005
    Location
    Wewelsfleth, Germany
    Posts
    54
    Author of the Thread
    Quote Originally Posted by (fasad @ Feb. 15 2007,08:52)
    The command works fine with the JAM3 weapons. Are you sure you are using the correct weapon class name? You can find the classname using the weapons command.
    Hello again,

    No I was not using the correct weapon classnames.
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">W_3 action &#91;&#34;drop weapon&#34;,Barrel,0,0,&#34;UKF_SA80&#34;&#93;[/QUOTE]

    Yes you are right, it works with both rifles and hand guns&#33;
    My second question was answered with the two numbers, too. And trying it a few times the direction of the guns change every time you start the mission.

    But isn&#39;t it a shame your not able to find these information from the hands of BIS themselfs.
    I can&#39;t remember that there was a reference from BIS in form of a Book or anything on the CDs nor in the BIS COMREF.
    I mean a complete explanation of the Mission Editor and its functions.
    Or have I just overseen this? ***
    I know on one CD, Version 1.0, is a small html file how to built a mission but it was not very detailed.

    Well, it is as it is and I think it is much more nicer to ask in forums and to have contact to other fellows. ***

    So thank you for your *** .

    Regards limmy3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •