Difference between revisions of "ShowBarterMenu - Actor"
Jump to navigation
Jump to search
imported>DavidJCobb (→Notes) |
imported>DavidJCobb (→Notes) |
||
Line 37: | Line 37: | ||
== Notes == | == Notes == | ||
* This function will fail if the actor isn't actually loaded. The barter menu will appear, but it will be empty even if the actor's merchant chest has items in it. | * This function will fail if the actor isn't actually loaded. The barter menu will appear, but it will be empty even if the actor's merchant chest has items in it. | ||
* The function may also show an empty barter menu if the actor is in bleedout. | * The function may also show an empty barter menu if the actor is in bleedout. (Needs verification.) | ||
== See Also == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] |
Revision as of 23:23, 19 May 2017
Member of: Actor Script
Shows the barter menu for this actor.
Syntax
Function ShowBarterMenu() native
Parameters
None.
Return Value
None.
Examples
- Standard use.
BobREF.ShowBarterMenu() ; Shows BobREF's barter menu
- Prompt a barter menu via an activator.
ScriptName YourActivatorScript Extends ObjectReference
Actor Property kSomeActor Auto ; Filled with desired merchant Actor
Event OnActivate(ObjectReference akActionRef)
If akActionRef == Game.GetPlayer() ; Only if activated by the player
kSomeActor.ShowBarterMenu() ; Show this actor's barter menu
EndIf
EndEvent
Notes
- This function will fail if the actor isn't actually loaded. The barter menu will appear, but it will be empty even if the actor's merchant chest has items in it.
- The function may also show an empty barter menu if the actor is in bleedout. (Needs verification.)