GameEvents.TeamMeet

Pazyryk

Deity
Joined
Jun 13, 2008
Messages
3,584
From the wiki:

void GameEvents.TeamMeet(unknown playeractive, unknown playermet)

Event Type
Override: the first subscriber to return true will prevent the standard game mechanic to take place. Use it to replace the corresponding game mechanic with your own function.
The listener fires as expected, but returning true (or false) doesn't prevent the meeting from happening. I was hoping to prevent civs from meeting until a certain condition is met. Is the documentation above wrong due to a dll bug?
 
No, the wiki is just wrong. It's a "CallHook" event (ie a notification that something has happened ) not a "CallTestAll" event (which are the ones that you can use to stop things happening)

(Both the "unknowns" are TeamTypes - that is team ids)

Edit: BTW, the complete list of all GameEvents from the dll source we have access to is in post #134 here - http://forums.civfanatics.com/showthread.php?t=479600&page=7 (ignore the bold and bold italic ones as they are ones I've added)
 
Back
Top Bottom