Jump to content

Getting OwnerID of raids

Closed 2.8.9

Snaplatack
Snaplatack

Posted

Hello @nivex. I was trying to call the hook OnPlayerEnteredRaidableBase and receive the OwnerId along with the AllowPVP, mode, and player variables. When I add ulong ownerId, the hook fails to call. Here's a sample of what I tried doing.

private void OnPlayerEnteredRaidableBase(BasePlayer player, Vector3 raidPos, bool AllowPVP, ulong ownerID) {}

nivex

Posted

heya, you can look at the .cs to find all of the hooks btw

private void OnPlayerEnteredRaidableBase(BasePlayer player, Vector3 raidPos, bool AllowPVP, int difficulty, string unused1, float unused2, float unused3, float loadTime, ulong ownerId)

this will provide the ownerId

Snaplatack

Posted

42 minutes ago, nivex said:

heya, you can look at the .cs to find all of the hooks btw

private void OnPlayerEnteredRaidableBase(BasePlayer player, Vector3 raidPos, bool AllowPVP, int difficulty, string unused1, float unused2, float unused3, float loadTime, ulong ownerId)

this will provide the ownerId

Works beautifully. I saw it in the config but couldnt find the types of variables to pass through it. Thanks!

nivex

Posted

Changed Status from Pending to Closed

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.