Jump to content

Add Stack Everything support

Not a Bug 2.3.5

Kreavles
MON@H

Posted

I can't (and shouldn't) control what entities other plugins are spawning. 

Limit Entities plugin is using hooks:
CanBuild - to prevent player from placing an entity
OnEntitySpawnedOnEntityKill - to track spawned/destroyed entities.
Tracking entities relies on OwnerID, so if this field is unset (OwnerID == 0) when entity is spawned (entity.spawn()) it will be ignored. My guess is that's what happens now. If you want these entities to be tracked, ask author to set entity.OwnerID = player.userID before calling entity.spawn(). This will make them trackable by Limit Entities.

However preventing players from spawning entities (to respect the limits) is a bit more complicated, the "easiest way" atm is to call LimitEntities.Call("CanBuild") or you may ask author to reach me if he need some specific api call, I can add it.

MON@H

Posted

Changed Status from Pending to Not a Bug

2.1m

Downloads

Total number of downloads.

9.7k

Customers

Total customers served.

141.5k

Files Sold

Total number of files sold.

3m

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.