Difference between revisions of "UseWeapon (Function)"
Jump to navigation
Jump to search
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0))) |
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
||
Line 34: | Line 34: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1. | [[Category:Functions (GECK 1.1)]] | ||
[[Category:AI Functions]] | [[Category:AI Functions]] | ||
[[Category:AI Functions (GECK 1. | [[Category:AI Functions (GECK 1.1)]] | ||
[[Category:Godsend Functions]] | [[Category:Godsend Functions]] | ||
[[Category:Godsend Functions (GECK 1. | [[Category:Godsend Functions (GECK 1.1)]] |
Revision as of 13:22, 15 August 2009
Syntax
[ActorREF.]UseWeapon WeapontoUse WhereToStand Target NumberOfShots/Hits [CrouchToReload] [HoldFire] [AlwaysHit] [DoNoDamage] [TargetShouldBeHere]
Description
UseWeapon Has an actor use its weapon. It is called on a Reference and takes a whopping nine parameters, though the last five are optional:
- the weapon
- where to stand
- the target
- how many times to use the weapon
- whether to crouch when reloading [optional, default is true]
- whether to hold fire when blocked [optional, default is true]
- whether to automagically hit the target [for scripted forced kills; optional, default is false]
- whether to prevent all damage [for scripted protracted fake combat; otpional, default is false]
- where the target needs to stand [optional, default/NULL means "anywhere"]
Examples
BuddyRef.UseWeapon Pistol12 BuddyRef HollyRef 5 0 0 0 0 XMarkerRef047
So Buddy would draw his pistol (or grab one if one was nearby), and from his own current location he would fire at HollyRef five times -- but only while she is near XMarkerRef047.
Notes
See Also
Reference
Initiate Reddin likely calls this command at least twice when firing her weapon unnecessarily during the trek to GNR.