Home   Help Search Login Register  

Author Topic: sholdering an at4 launcher and talking to the nearly dead.  (Read 607 times)

0 Members and 2 Guests are viewing this topic.

Offline Calamity

  • Former Staff
  • ****
  • Calamity Strikes AGAIN!
    • DataCraft Enterprises
Hope it was a catchy title ;~D.
I've got two questions getting AI units to perform actions during a scripted intro.
1) The easy
I am trying to get a Russian Soldier to sholder an AT4 launcher during a sceen. He doesn't have to shoot it, only be holding it by the time the camera looks at him. In my script, and well before the camera turns to the unit, I have the code:
AP1 DOWATCH AP
AP1 ACTION ["WEAPON", "AT4LAUNCHER"]
AP1 is my Russian dude with the AT4Launcher assigned. and yes I gave him ammo before the weapon. and I verified that the weapons is loaded when the weapon is sholdered. (Tested while I'm playing that unit.)
AP is a Blackhawk and I want it to APPEAR that my Russion AT4 guy has shot down the chopper. However, All I get is the Russian holding his AK. I could remove the AK but it looks more realistice if the AT4 guy has his main firearm with him.
2) The hard: Does anyone know how to do the playmove for "HEAL". Where a wounded man laying down rolls over and heals himself?
In a Sceen I need an injured man to talk to my character. He is supposed to be too injured to move on is own. If I could get him to lay on his back and talk that would be great!. I think, however, that I will have to settle for him laying on his belly and rolling over. (very important to see his face so that the LIP file doesn't go to waste)
The SETUNITPOS "DOWN" no problem. Guy lays flat on his face. Not much of a conversationalist in that position!

Any ideas?
Calamity

Kaliyuga

  • Guest
Re:sholdering an at4 launcher and talking to the nearly dead.
« Reply #1 on: 18 Dec 2002, 08:18:00 »
As for the second part of your question.....
Try these animations  on for size..

LyingToTreatedLying
CivilLyingDying
CombatRelaxedDying
CombatToLying
CombatToMedic
 


CrashnBurn

  • Guest
Re:sholdering an at4 launcher and talking to the nearly dead.
« Reply #2 on: 18 Dec 2002, 23:31:08 »
To shoulder the gun -

unitname playmove "effectstand"

to end the playmove back to normal with gun in hand-

unitname playmove "standtocombat"

O Neil

  • Guest
Re:sholdering an at4 launcher and talking to the nearly dead.
« Reply #3 on: 18 Dec 2002, 23:34:22 »
Hahaa, when I saw that title I just craked up laughing. ::)
Anyhoo, the civvie one is really if someone is dead, it's a dead position.

Just had to add that.

O Neil ;) ;) ;)

Offline Calamity

  • Former Staff
  • ****
  • Calamity Strikes AGAIN!
    • DataCraft Enterprises
Re:sholdering an at4 launcher and talking to the nearly dead.
« Reply #4 on: 21 Dec 2002, 16:52:45 »
Ok, I am still working on the Sholdering an AT4 or a 9K32 launcher.
I have been experimenting with my script. I have a Russian soldier, Init file contains only: [] exec "Sholder_missile.sqs"
the file Sholder_missile.sqs is like this:

REMOVEALLWEAPONS AP1
AP1 ADDMAGAZINE "9K32LAUNCHER"
AP1 ADDWEAPON "9K32LAUNCHER"

_CAM1 = "CAMERA" CAMCREATE [0,0,0]
_CAM1 CAMERAEFFECT ["INTERNAL","BACK"]

_CAM1 CAMSETTARGET AP1
_CAM1 CAMSETRELPOS [-15, 5, 2]
_CAM1 CAMCOMMIT 0


TITLECUT ["","BLACK IN",2]
~2
_CAM1 camsetrelpos [5, 5, 2]
_CAM1 camcommit 5
AP1 playmove "effectstand"
~4
AP1 DOFIRE BARREL
AP1 ACTION ["Weapon 9K32 Launcher"]
HINT "TETT"
~4
AP1 FIRE ["WEAPON", "9K32LAUNCHER"]
HINT "TETT"
~4
AP1 ACTION ["WEAPON", "9K32LAUNCHER"]
HINT "TETT"
~4
AP1 playmove "standtocombat"
HINT "TETT"
~6
AP1 ADDWEAPON "AK74"

Now, The Soldier stands like he still has an AK. He then stands up and slings his AK. The hints tell me that the following steps are being executed. However. The soldier waites until the "standtocombat" before unslinging his non-existant AK. Then the AK appears in his hand because of tha addweapon command. The addweapon was there to put the AK on the Soldiers back AFTER he unslung the AT4 or 9K32 launcher!
Any ideas?
Calamity.

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Re:sholdering an at4 launcher and talking to the nearly dead.
« Reply #5 on: 21 Dec 2002, 23:22:50 »
Just a hunch. Try
this setbehaviour "steath"
I think you might be lucky  ;)