Skip to main content

Execute_CustomMobileMessage

Description

Sends a custom mobile message to the recipient determined by MobileMessageParties data. If no MobileMessageParties data is available, BaseObject is treated as sender and the other entity as receiver.

Parameters

ParameterDescription
BaseObjectReference entity; sender and receiver are determined by MobileMessageParties
S1CustomMobileMessageId (linked to id in CustomMobileMessage.json)
S2UseDeathReason to inject the death cause into the body, otherwise None

S2=UseDeathReason only has an effect on a script run from the death distribution task, which is what carries the cause; anywhere else the cause is empty and the body prints without it. The message body must contain a {DeathReason} placeholder for the cause to appear.

Examples

DescriptionBaseObjectCommandS1S2
Send a donation thank-you text messageSelfCustomMobileMessageAtm_Donation_ResultNone
Send a birthday greeting messageSelfCustomMobileMessageBirthday_GreetingNone
Send a welcome message from a friendTargetCustomMobileMessageWelcome_Message_01None
Send the obituary with the death causeTargetCustomMobileMessageDead_MessageUseDeathReason