Closed nomisum closed 5 years ago
fn_showPassport or fn_receiveShowPassport might be better suited. Will investigate tomorrow.
Okay so there are three different modes a passport might be viewed.
Which of these do you need the event for?
1.1
Use case: AI checks passport on borderCrossing, needs to decide what to do. https://github.com/gruppe-adler/a_st_borderCrossing.VR/blob/master/grad-borderCrossing/functions/fn_init.sqf#L3
I guess it's the right function then, because it's the only one that actually knows whether the target is looking at the passport or not.
However it's not only executed whenever a unit shows their passport, but also when the recipient is busy or stops looking at the passport (function updates dialog below). So I'd call the event showStateChanged
or something. User can then check the _state
param to determine what is happening (0 == target is looking at passport).
renamed it
allows hooking in other modules