payload API - amnesia-spelos/streamnesia GitHub Wiki
You can use the following Streamnesia functions in your payload scripts.
void SetMessageExact(string &in message, float afTime)
// Shows the exact string as message on screen. 0.0f afTime value = auto-calculated
SetMessageExact("Hello, Streamnesia!", 0.0f);
- extended
SetDeathHint("StreamnesiaLiteral", string &in message)
// Shows the exact string as the next death message
SetMessageExact("StreamnesiaLiteral", "My death message literal");
// When the first parameter of SetMessageExact is exactly "StreamnesiaLiteral",
// the string provided as a second parameter will be used as is (no extra_english lookup)
void CreateEntityAtFirstArea(string &in asEntityName, string &in asEntityFile, bool abFullGameSave)
// creates a barrel named MyBarrel at the first available area in the current map
CreateEntityAtFirstArea("MyBarrel", "barrel01.ent", true);