- Sep 26, 2021
- 16
- 0
Hi, im new to vscript, and i have no fucking clue what im doing. I get the error that "GetPrimaryAmmoCount" does not exist when i run my .nut file.
Here's the full log:
Code:
function OnPostSpawn()
{
printl("VScript succesfully loaded")
}
function GetPrimaryAmmoCount()
local primaryAmmoCount = activator.GetPrimaryAmmoCount()
printl(primaryAmmoCount)
}
Here's the full log:
Code:
VScript succesfully loaded
AN ERROR HAS OCCURED [the index 'GetPrimaryAmmoCount' does not exist]
CALLSTACK
*FUNCTION [GetPrimaryAmmoCount()] pen.nut line [8]
*FUNCTION [main()] InputRunScript line [1]
LOCALS
[this] TABLE
[vargv] ARRAY
[this] TABLE
Entity pen encountered an error in RunScript()
AN ERROR HAS OCCURED [the index 'GetPrimaryAmmoCount' does not exist]
CALLSTACK
*FUNCTION [GetPrimaryAmmoCount()] pen.nut line [8]
*FUNCTION [main()] InputRunScript line [1]
LOCALS
[this] TABLE
[vargv] ARRAY
[this] TABLE
Entity pen encountered an error in RunScript()
Last edited: