API_DOCS: Flag Drop and Grab Message

Questions, comments, and news on the server side plug-ins and it's API
Post Reply
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

API_DOCS: Flag Drop and Grab Message

Post by JeffM » Sat Jan 27, 2007 4:16 am

A new event was added to 2.1 for flag drops and grabs

Code: Select all

 bz_eFlagDroppedEvent 

Code: Select all

 bz_bz_eFlagGrabbedEvent
They are called whenever the server is notified of a droped or grabbed flag.
The event will contain a bz_FlagDroppedEvenData_V1 or bz_FlagGrabbedEventData_V1 object respectivly.
it has the playerID, the flagID, the flag droped, and the position the flag was dropped at.

The Grabbed event will also take a shot type.
ImageJeffM

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM » Mon Apr 02, 2007 5:19 pm

These events have been backported to the 2.0.x branch.
The grabbed event does NOT have a shot type in the 2.0.x version.
ImageJeffM

Post Reply