See Enemy fires off whenever
the associated NPC (Non-Player Character), referenced by an
object variable, sees an NPC or Player on the opposite team.
• Creation: The See Enemy event is created through the
Kismet menu, as above.
• The See Enemy Event must be combined with an Attach
To Event and an object variable representing the NPC in order
to function. If you do not set this up, then there's no way
for the SeeEnemy to know who is the enemy.
• bClientSideOnly: This is a handy tool to optimize
events for the network. Basically, if the event is not going
to affect gameplay - if it doesn't matter to other players
- then select client only. This will prevent the event from
sending placement/rotation/physics data across the network
and trying to make sure the asset is in the same place and
the same time on everyone's computer who's in the macth. This
would be used for decorative items that have no affect on
gameplay. If, however, all the players do need to be constantly
updated with the asset's information, then make sure this
is checked off. A common dynamic asset this is necessary for
is a lift. All the players need to see where the lift actually
is at any given moment.
• bEnabled: If you combine events with toggles, this
field will allow you to turn 'off' and 'on' the event at any
time. It's enabled by default, but if you need to start with
the event 'off' and then turn it on later, uncheck bEnabled
and the event will not fire until you turn it on. Note:
This contorls the event - not the asset itself. So it is possible
to have multiple events tied to the same asset, some of which
are enabled, some disabled.
• bPlayerOnly: If you only want the Player, but not
NPC's to cause the event to fire, then check this off. Unchecked,
and anything can set off the event.
• MaxSightDistance: Measured in UU (Unreal Units) this
will determine the maximum distance the NPC wil be able to
identify the other as an enemy. *Note: This is different than
identifying another entity. Depending on the game, it is possible
for an NPC to first see a player, but not know if it's enemy
or friendly, and then hit this max sight distance and finally
make the friend or foe determination.
• MaxTriggerCount: This controls how many times the
Event can fire off. 0 is infinite, otherwise, the event will
stop working after it reaches the number you enter. 1 is default.
• ReTriggerDelay: If the event is allowed to fire multiple
times, this will implement a slight delay after it fires before
it can be fired again. This prevents spamming kismet signals
out of the event which is especially important if the event
is going to propagate across the network.
|