Repository navigation
Game API
The Game API is useful when you need to do game actions, such as sending mail, events or announcements.
##Available Functions
GameAddNotification();
GameAddMail();
GameAddAnnouncement();
##GameAddNotification();
GameAddNotification(); is a function used to send a notification to a player. This function takes two variables.
$api->GameAddNotification($var1,$var2);
Variable #1 - Integer. Specifies the user testing on.
Variable #2 - Text. Message sent along with the notification.
This function always returns true.
##GameAddMail();
GameAddMail(); is a function used to send a message via in-game inbox to a player. This function takes four variables.
$api->GameAddMail($var1,$var2,$var3,$var4);
Variable #1 - Integer. Specifies the user testing on.
Variable #2 - Text. Message subject.
Variable #3 - Text. Message text.
Variable #4 - Integer. User ID the message is sent from.
This function returns true when the message is sent successfully. False if the message fails to send.
Current Chivalry Engine Versions:
V1 - 1.0.3b released March 21, 2025
V2 - 2.0.2 released Jun 13, 2020
V3- 3.0.0-alpha1 released Sept 29, 2019