fgd. file problem

Taroka

L1: Registered
May 29, 2023
5
0
Hello,
i made a custom .fgd file but it doesnt work.
Does anyone know why?



tf_npc_custom.fgd:

@PointClass base(Targetname, Origin) studio("models/your_npc_model.mdl") = npc_custom:
[
// General properties
npc_health(integer) : "Health" : 100 : "The health of the NPC"
npc_weapon(choices) : "Weapon" : "weapon_crowbar" : "The weapon of the NPC"

// Model property (uses Model Browser)
studio("models/") : "Model" : "models/your_npc_model.mdl" : "The model of the NPC"

// Team property
TeamNum(choices) : "Team" : 0 : "Team" =
[
0 : "Any"
2 : "Red"
3 : "Blue"
]

// Model scaling
ModelScale(float) : "Model Scale" : "1" : "Scale for the NPC model"

// Animations property
studiohdr("models/your_npc_model.mdl") : "Animations" : : "The animations of the NPC"

// Additional properties and options you want to add

// Inputs
input SetAnimation(string) : "Sets the NPC animation"
input SetHealth(integer) : "Sets the health of the NPC"
input Kill(void) : "Kills the NPC"
input Enable(void) : "Enables the NPC"
input Disable(void) : "Disables the NPC"
input Hide(void) : "Hides the NPC"
input Show(void) : "Shows the NPC"
input Trigger(void) : "Triggers an action for the NPC"

// Outputs
OnSpawn : "Fires when the NPC spawns"
OnDeath : "Fires when the NPC dies"
]