Difference between revisions of "NDOIN"
Line 6: | Line 6: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">NpcSpeech() || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">NpcSpeech()</p>Params<br>say - string to say<br>speechtype - Type to send to the client for special processing "combat" for combat messages, "record or event" to always send message to a player's chat window, "discard" to not write to a player's chat log.<br>Returns<br>bool - true if valid false if not || Causes the object to speak with overhead chat, making the object "talk". Does not play a sound. See PlayObjectSound(...) to play a sound. |
|} | |} | ||
</center> | </center> | ||
Line 17: | Line 17: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">NpcSpeechToUser() || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">NpcSpeechToUser()</p>Params<br>say - string to say<br>saytype - Type to send to the client for special processing "combat" for combat messages, "record or event" to always send message to a player's chat window, "discard" to not write to a player's chat log<br>gameobject - target user || Causes the object to speak with overhead chat, making the object "talk" to a specific user. |
+ | Notes: Does not play a sound. See PlayObjectSound(...) to play a sound.. | ||
|} | |} | ||
</center> | </center> |
Latest revision as of 08:04, 27 November 2019
Object Functions & Examples
NpcSpeech() Paramssay - string to say speechtype - Type to send to the client for special processing "combat" for combat messages, "record or event" to always send message to a player's chat window, "discard" to not write to a player's chat log. Returns bool - true if valid false if not |
Causes the object to speak with overhead chat, making the object "talk". Does not play a sound. See PlayObjectSound(...) to play a sound. |
Example
CODE EXAMPLE BLOCK
NpcSpeechToUser() Paramssay - string to say saytype - Type to send to the client for special processing "combat" for combat messages, "record or event" to always send message to a player's chat window, "discard" to not write to a player's chat log gameobject - target user |
Causes the object to speak with overhead chat, making the object "talk" to a specific user.
Notes: Does not play a sound. See PlayObjectSound(...) to play a sound.. |
Example
CODE EXAMPLE BLOCK