The dssMessage native AI script function calls the DSS function CAnimationModule::dssMessage
.
()dssMessage(instance: f, mode: s, who: s, msg: s)
None.
()dssMessage(114, "BC", "Bob", "Life is hard");
This example code calls the DSS function with session ID 114, mode "BC", speaker "Bob", and message "Life is hard".
()dssMessage(123, "SYS", "", "Hello world")
Broadcasts "Hello world" to everyone in session 123.
()dssMessage(123, "DM", "System", "Secret message")
Broadcasts "Secret message" to the DM who is running the scenario in session 123.