Jump to content

amoult

Member
  • Content Count

    21
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About amoult

  • Rank
    Private First Class
  1. Ok here are scripts for sitting guard. This is how it looks in-game. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">sit.sqf <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_a=0; while {_a==0} do { if (not alive _this)then { //if dead release animation and exit hint "dead"; _a=_a+1; } else { _this switchMove"AmovPsitMstpSlowWrflDnon_WeaponCheck2"; if (not alive _this)then { _a=_a+1; }; sleep 11; }; if (seen) then { _a=_a+1; }; }; and <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">autoguard_sit.sqf <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_a=0; z = _this execVM "sit.sqf"; while {_a==0} do { //check if calling unit sees any member of blueFor { ka1=_this knowsAbout _x; if (ka1>0) then { titleText[format["%1 sees you",_this],"plain"]; wp = group _this addWaypoint [getPos _this,0]; wp setWaypointType "GUARD"; wp setWaypointCombatMode "RED";wp setWaypointSpeed "FULL"; // get up and release animation seen=true; _this switchMove"AmovPsitMstpSlowWrflDnon"; Eh=_this addEventHandler["animDone",{eh1=1}]; waitUntil{eh1==1}; //exit _this switchMove""; _a=_a+1; }; }forEach units blueFor; sleep 1; };
  2. amoult

    animation browser

    Umm.. yes I linked demo mission in my first post I read from some another thread that there was that kind of mission already, but could not find it so I made one myself. On my mission, player can choose any animation and animation name is also shown on the screen (along with the linenumber of moves.txt linked in fist post). List is really the same as in biki, just removed whitespaces. Atleast I've find it useful to find animation which I wan't to use. I only have to write down the number of animation. Then, I have moves.txt open in text editor (linenumbers shown). From there it's really fast to copy & paste animations to any script where I need them..
  3. Hello there.. I wanted to do the same thing, so I created a little script. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">autoguard.sqf <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _a=0; _this switchMove"BasicDriverOut"; while {_a==0} do { //check if calling unit sees any member of blueFor { ka1=_this knowsAbout _x; if (not alive _this)then { //if dead release animation and exit _this switchMove""; _a=_a+1; }; if (ka1>0) then { titleText[format["%1 sees you",_this],"plain"]; wp = group _this addWaypoint [getPos _this,0]; wp setWaypointType "GUARD"; wp setWaypointCombatMode "RED";wp setWaypointSpeed "FULL"; //Take weapon from back and release animation _this switchMove"AmovPercMstpSnonWnonDnon_AmovPercMstpSrasWrflDnon"; Eh=_this addEventHandler["animDone",{eh1=1}]; waitUntil{eh1==1}; _this switchMove""; //exit and raise flag seen=true; _a=_a+1; }; }forEach units blueFor; sleep 1; }; This is how it works: name your group as bluefor (blueFor=group this; to leaders init field. Then place lone enemy unit you want to stand in guard. Write x= this execVM "autoguard.sqf"; to init field. No enemy switch to animation BasicDriverOut which is basically standing still, weapon on back and head moving, until: 1. He's dead. 2. He detects any member of 'blueFor' group. Then it creates 'GUARD' waypoint to he's current location, plays animation where he takes rifle to his hands. After animation is played, he switches to newly created GUARD waypoint in combat mode and starts shooting and hunting your men down Also 'seen' variable is set true, which you can use to trigger stuff. You could place your guards talking, sitting, smoking etc. with the same kind of method. Just have to find correct combination of animations to be played.
  4. amoult

    Radio messages

    No they are in sounds.pbo ..btw you can use all music tracks included in the game as well: playMusic "atrack1"; playMusic "atrack15"; etc. There are 26 tracks.
  5. I don't no if anyone needs this, but heres a little thingy to browse through different player animations. Usage: Place .pbo file to your mission folder and load mission. Use action menu to select which animation to play. For quick reference, number in front of the animation name represents the line number on this file. "Play all" does not work ..yet
  6. amoult

    arrays

    Thank you, both of you! I should have checked syntax highlighting right away Bit strange though that exec gives errors still.. Now I'm gonna make myself a little action menu thingy to preview animations
  7. is there a maximum number of array elements? I tried to put all animation move strings (800~ or so) to one array put it gave an error. Could someone take a look what's wrong with it? I tried to call that as an script (renamed .sqs and added ; to the end of line).
  8. amoult

    6 Questions

    2. To units init field: this removeallweapons this; this addweapon "nameofweapon"; this addmagazine "nameofmagazine";this addmagazine "nameofmagazine"; E.g.: this removeallweapons this; this addweapon "M4A1SD"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; Heres the list of weapons and ammo Also, if my memory server me right, there is a list for ready made weaponloadouts somewhere on this forum, ready for copying & pasting
  9. amoult

    Radio messages

    Ok I used Unpbo for one of the single missions. In your own mission, you can call e.g. 'player sideradio "M06r01";' Which will print "Echo to foxtrot: all on board, let's go' and play same sentence as audio too. Now we only need a list of all the phrases that are in the game.. I think there are quite a few pretty generic messages which could be reused.
  10. Is there a way to use Arma campaign radio messages in my own missions? I mean those 'Papa bear, return to base' 'Leave no-one alive' etc. How can I use those and is there a list of available phrases?
  11. What's exactly the difference between sentry and guard waypoints? I've read waypoint topics in Biki and played around in editor but it's still not quite clear. If I don't have any Guarded by trigger, just enemy group with single guard or sentry waypoint, they come looking for me if I harass them and then return to that waypoint when area is 'clear'. From biki: "Sentry - The unit will hold position until any member spots an enemy. At that point, the unit will proceed to their new waypoint. If the unit is not set to hold fire, they may engage the enemy on the way." From that [bolded part] I get that if I had a waypoint after sentry waypoint they would switch to that if enemy was detected. ..but that doesn't seem to happen. So what is the purpose of sentry waypoint?
  12. amoult

    small questions

    I tried all combatmode and behaviour options in waypoint put they are always holding guns.
  13. amoult

    small questions

    No luck. It says "==:type any, expected Number, String, Object, Side, group, text, config entry, display(dialog), control" if I put endTrigger==true to trigger condition field. <edit> got it. endtrigger=1; to waypoint and edntrigger == 1; to trigger worked.. Doesn't make sense to me why endtrigger == true did not work through.
×