Module Functional.ClientWatch
@@ -1794,7 +1794,7 @@ -- Create an instance with a client unit prefix and send them a message when they spawn
local clientInstance = CLIENTWATCH:New("Rotary")
- function clientInstance:OnAfterSpawn(From,Event,To,ClientObject)
+ function clientInstance:OnAfterSpawn(From,Event,To,ClientObject,EventData)
MESSAGE:New("Welcome to your aircraft!",10):ToUnit(ClientObject.Unit)
end
@@ -1839,7 +1839,7 @@
-- Show a message to player when they take damage from a weapon
local clientInstance = CLIENTWATCH:New("Rotary")
- function clientInstance:OnAfterSpawn(From,Event,To,ClientObject)
+ function clientInstance:OnAfterSpawn(From,Event,To,ClientObject,EventData)
function ClientObject:OnAfterHit(From,Event,To,EventData)
local typeShooter = EventData.IniTypeName
local nameWeapon = EventData.weapon_name
@@ -1909,13 +1909,43 @@
-
+
+
+
+
+
+
+
+
+Filter out all clients that are not of the given category
+
+
+
+
+
+Filter out all clients not belonging to the provided coalition
+
+
+
+
+
+If not nil, will only activate for aircraft of the given category value.
+
+
+
+
+
+If not nil, will only activate for aircraft of the given coalition value.
+
+
+
+
Creates a new instance of CLIENTWATCH to add scripts to.
- CLIENTWATCH:OnAfterSpawn(Controllable, From, Event, To, clientObject)
+ CLIENTWATCH:OnAfterSpawn(Controllable, From, Event, To, clientObject, eventdata)
User function for OnAfter "Spawn" event.
@@ -2824,25 +2854,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
The main event handling function...
-
-
-
- | Fields and Methods inherited from EVENTS.Birth | -Description | -
|---|---|
| - | - |