<aside> 📦 DTADD.acs

</aside>

<aside> ⚡ int DefineTrainingEntry(int type, str tag, str desc, str icon, str actor)

</aside>

Usage


This is a function that will actually add a weapon or item to the list of entries for the training room. This function should not be called in any script that occurs on OPEN, OPEN CLIENTSIDE, or anything of the sort. It should only be called in scripts that are being called from [RegisterTrainingDef](<https://mm8bdm.notion.site/RegisterTrainingDef-9ebad3a68c7f46b99c65a37d0d59257b>).

Parameters

Return Value

Example


This function shows how you would use this function alongside its closely related [RegisterTrainingDef](<https://mm8bdm.notion.site/RegisterTrainingDef-9ebad3a68c7f46b99c65a37d0d59257b>) function.

script "sparkscatter_definetraining" (void) {
	DefineTrainingEntry(DTADD_TRAINING_WEP, "TAG_SPARKSCATTER", "DESC_SPARKSCATTER", "SKSTA0", "SparkScatterWep");
}

script "sparkscatter_definesetup" OPEN {
	RegisterTrainingDef("sparkscatter_definetraining");
}

See Also


DefineTrainingEntryUpdated

DefineTrainingItem

DefineTrainingItemUpdated

RegisterTrainingDef