Game Development Reference
In-Depth Information
New dead enemy body sighted event
Just like an enemy sighted event, seeing a dead enemy sends out the same information but
flags the event as a different type. While we haven't started using this information yet, it
can be useful to store locations of dead bodies in order to mark potentially dangerous areas:
AgentSenses.lua :
function SendNewDeadEnemyEvent(
sandbox, agent, enemy, seenAt, lastSeen)
local event = {
agent = enemy,
seenAt = seenAt,
lastSeen = lastSeen};
AgentCommunications_SendTeamMessage(
sandbox,
agent,
AgentCommunications.EventType.DeadEnemySighted,
event);
end
Search WWH ::




Custom Search