Jump to content

Hooks

Closed 2.4.7

Might just be me, but im having trouble getting  OnRaidableBaseCompleted to fire.

		[PluginReference] 
		private Plugin RaidableBases;
		
		private void OnRaidableBaseCompleted(Vector3 raidPos, int mode, bool allowPVP, string id, float spawnTime, float despawnTime, float loadTime, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders, List<BasePlayer> intruders, List<BaseEntity> entities)
        	{
            	foreach(var r in raiders)
            	{
               	 Puts(r.displayName + " has finished a raid!");
            	}
        	}

i get nothing. In chat it says the player(s) beat the raid, but this never fires. 

 

Am I missing something? Or am i just an idiot?

 

 

Edited by phudgee

Share this comment


Link to comment

heya.

List<BaseEntity> entities

is actually HashSet<BaseEntity> entities

just an oversight that I forgot to change when I changed it to HashSet

i've fixed this in the next update.

however you can simply use :

private void OnRaidableBaseCompleted(Vector3 raidPos, int mode, bool allowPVP, string id, float spawnTime, float despawnTime, float loadTime, ulong ownerId, BasePlayer owner, List<BasePlayer> raiders)

 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.7k

Files Sold

Total number of files sold.

1.6m

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.