Execute_SetKnockDoorVisitSitePrivilege
Description
Script execute function to grant or revoke a character's non-persistent knock-door visit access. Granting allows traversal through doors in the Target door's Residence Site and interior visibility for that Site. It replaces any previously granted knock-door visit access.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Self or Target. Granting requires Self; revoking applies to BaseObject |
| S2 | For grants only: None uses Target; CoopMainTarget uses the current Coop's main target |
| F1 | 1 grants access; 0 revokes BaseObject's current access |
Notes
The resolved target must be a valid exterior Residence door when granting.
Examples
| Description | BaseObject | Command | S2 | F1 |
|---|---|---|---|---|
| Grant access using the script Target | Self | SetKnockDoorVisitSitePrivilege | None | 1 |
| Grant access using the current Coop's main target | Self | SetKnockDoorVisitSitePrivilege | CoopMainTarget | 1 |
| Revoke current knock-door visit access | Self | SetKnockDoorVisitSitePrivilege | None | 0 |
| Revoke the Target's knock-door visit access | Target | SetKnockDoorVisitSitePrivilege | None | 0 |