Here’s what I have managed to do.
I made a model of a flag which bobs up and down a bit and I wanted to use it as a capturable flag for a CTF map, but you can’t use animated models for that so I found another way of doing this. I have a team_ctf_redflag with the non-animated flag model and on the same place I have a misc_gamemodel with the animated flag. With scripting I setstate the flags invisible and default depending on which one needs to be shown. Normally the gamemodel is default and the redflag invisible, but when the player comes near it (when it steps into a trigger_multiple), the redflag is visible and the gamemodel is invisible so you can grab the flag. But I’ve got a problem with this. The team_ctf_redflag is always in the wrong place. When it becomes visible it’s half into the ground and no matter how high I place the little red team_ctf_redflag box in Radiant, it is always half into the ground. I’ve also changed the origin of the t_c_r manually, but nothing works, it’s always on the same place half into the ground. Anyone knows what’s wrong with this?
Ow I just got an idea, I’ll try to change the origin of the model in the modelling program. Hang on.
OMG why didn’t I think of this before, it worked. I’ve been struggling with this for the past 3 days and now that I decided to ask here I finally found the answer…
