I made a script for a construction of a bridge but it doesn’t works :bored: Could someone please chek it out:
bridge
{
spawn
{
wait 200
constructible_class 2
constructible_constructxpbonus 1
constructible_destructxpbonus 1
setstate bridge_materials invisible
}
built final
{
setstate bridge default
setstate bridge_materials invisible
}
decayed final
{
setstate bridge_materials default
setstate bridge invisible
}
death
{
wm_announce “The bridge has been destroyed!”
setstate bridge_materials default
}
}
When I launch my game to test it I keep getting this error message:
“Func_constucible” has a missing parent trigger_objective_info “(null)”
My func_constructible has the following keys:
classname func_constructible
targetname bridge
spawnflags 12
scriptname bridge
My trigger_objective_info has the following keys:
classname trigger_objective_info
track The bridge
targetname bridge_toi
target bridge
spawnflags 3
My func_brushmodel has the following keys:
targetname bridge_materials
target bridge_toi
classname func_brushmodel




:bump: