Background for Starfield
Member of the ObjectReference script
intfunctionRemoveResources(ResourceakResource, intaiCount, boolabSilent=false)Native

Description

Documentation Comment

Removes the specified count of resource from the container, scrapping items, and returning the remainder to said container.
The function returns the number of resource actually removed from the container


Caveats


Parameters

ResourceakResource

intaiCount

boolabSilent=false


Examples

Auto-Generated Example

Resource myResource__akResource
int myInt__aiCount
bool myBool__abSilent

int returnedValue = myObjectReference__toCallFunctionOn.RemoveResources(myResource__akResource, myInt__aiCount, myBool__abSilent)
Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.