so ive come back to my map after months of being too busy with school, and because of the trouble constructables have given me, i cannot get them to work correctly for the life of me, i had one working, but when i added another, the first ones’ construciton boxes wouldnt go away, now i have gone thru all of them, and completely redone them, and still i get problems where beforeyou start construction the mg42 is floating in midair, and when you finish construction the mg42 is in its white/transparent state and it wont become solid, and the boxes wont dissappear, i even went so far as to take a constructable prefab with the mg42, drop its script into mine, then take teh sandbags, delete them, put the mg42 in my constructable, and replace the sandbags keys in my constructable, and it still wont work, i cannot get these to work at all! help!
ok why will this never work
Seems like a problem in the script, I know Drakir have a high number of good prefabs that you can use and check out to figure out how they work if you are not into reading the reference manual.
nah ive tried his scripts and such, and read the designers guide over 10 times, still wont werk
construction_script
{
spawn
{
wait 200
constructible_class 2
trigger self startup
}
buildstart final
{
}
built final
{
setstate construction_extra default
setstate construction_mg42 default
setstate const_tower invisible
// Some kind of UI pop-up to alert players
wm_announce "The ^6ALL^MIED ^6TO^MWER ^7has been constructed."
}
decayed final
{
trigger self startup
}
death
{
trigger self startup
// Some kind of UI pop-up to alert players
wm_announce "The ^6ALL^MIED ^6TO^MWER ^7has been destroyed."
}
trigger startup
{
setstate construction_extra invisible
setstate construction_mg42 invisible
setstate const_tower default
repairmg42 construction_mg42
}
}
Check the targetnames of the constructibles for correct spelling.
construction_toi: trigger_objective_info, this is a trigger to build the constuctible and must be around the build crates, and must be targeted to the constructible for example construction_mg42.
materials_mgnest: This in a targetname you must give to the construct crates (model, clip brushes, flag)
NOTE: The trigger_objective_info must have a origin brush, so select the origin brush together with the trigger brush and then make it a trigger_objective_info (toi).
Also the crates clipbrushes must have a origin.
Altered script:
construction_script
{
spawn
{
wait 200
constructible_class 2
trigger self startup
}
buildstart final
{
}
built final
{
setstate construction_extra default
setstate construction_mg42 default
setstate construction_toi invisible // changed (const_tower)
setstate materials_mgnest invisible // added
// Some kind of UI pop-up to alert players
wm_announce "The mgnest has been constructed!."
}
decayed final
{
trigger self startup
}
death
{
trigger self startup
// Some kind of UI pop-up to alert players
wm_announce "The mgnest has been destroyed!."
}
trigger startup
{
setstate construction_extra invisible
setstate construction_mg42 invisible
setstate construction_toi default // changed (const_tower)
setstate materials_mgnest default // added
}
}