Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.AddSpeechBubble: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
||
Line 6: | Line 6: | ||
''' void AddSpeechBubble(int '' | ''' void AddSpeechBubble(int ''iBubble'', string ''pszSpeech'', float ''flDuration'', unsigned ''unOffsetX'', unsigned ''unOffsetY'') ''' | ||
'' | ''Add a speech bubble(1-4 live at a time) to this NPC.'' | ||
Line 14: | Line 14: | ||
;Example | ;Example | ||
<source lang="lua"> | <source lang="lua"> | ||
function CDOTA_BaseNPC:AddSpeechBubble( | function CDOTA_BaseNPC:AddSpeechBubble( iBubble, pszSpeech, flDuration, unOffsetX, unOffsetY ) end | ||
</source> | </source> | ||
== Parameters == | == Parameters == | ||
Line 23: | Line 23: | ||
|- | |- | ||
| int | | int | ||
| | | iBubble | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| string | | string | ||
| | | pszSpeech | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| float | | float | ||
| | | flDuration | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| unsigned | | unsigned | ||
| | | unOffsetX | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| unsigned | | unsigned | ||
| | | unOffsetY | ||
| No Description Set | | No Description Set | ||
|} | |} |
Revision as of 23:31, 18 June 2015

Function Description
void AddSpeechBubble(int iBubble, string pszSpeech, float flDuration, unsigned unOffsetX, unsigned unOffsetY)
Add a speech bubble(1-4 live at a time) to this NPC.
- Example
function CDOTA_BaseNPC:AddSpeechBubble( iBubble, pszSpeech, flDuration, unOffsetX, unOffsetY ) end
Parameters
Type | Name | Description |
---|---|---|
int | iBubble | No Description Set |
string | pszSpeech | No Description Set |
float | flDuration | No Description Set |
unsigned | unOffsetX | No Description Set |
unsigned | unOffsetY | No Description Set |