ACF-Team / ACF-3

ACF
MIT License
67 stars 54 forks source link

[BUG] Attempt to call global 'LinkSource' (a nil value) #328

Closed shroobloom closed 1 year ago

shroobloom commented 1 year ago

Short Description

The above error is produced when trying to use Starfall's :acfAmmoCount() function. Likely due to the fact that LinkSource is not set to ACF.GetLinkSource in starfall/libs_sv/acffunctions.lua like it is in entities/gmod_wire_expression2/core/custom/acffunctions.lua. AllLinkSources is also undefined.

Branch and Version

Master, latest (88b02d6).

Console Error Logs

starfall/libs_sv/acffunctions.lua:2360: attempt to call global 'LinkSource' (a nil value)

How to Reproduce

Spawn an ACF gun and put the following starfall on it:

chip():isWeldedTo():acfAmmoCount()

TwistedTail commented 1 year ago

Fixed on 2041fca.