your first bit of code would should have been correct, assuming the guns group was group 1. the SetBodyGroup function the first parameter is group (ie: $bodygroup #) and then the second is the submodel (blank, reference) you should have checked in HLMV. lo l
On Mon, Dec 28, 2009 at 12:24 PM, Tobias Kammersgaard < tobias.kammersga...@gmail.com> wrote: > Oh of course! I moved blank down and fiddled with the code some more. > > SetBodygroup( 1, 1 ); in Event_Killed > > & > > SetBodygroup( 0, 1 ); in Spawn > > That only took about a billion years to figure out. OH WELL! > Nevermind me. > > /ScarT > > > 2009/12/28 Tobias Kammersgaard <tobias.kammersga...@gmail.com> > > > Sup my brothers! > > > > I've got a model which uses multiple bodygroups, my QC entry looks like > > this > > > > $bodygroup "guns" > > { > > blank > > studio "pistols_reference.smd" > > } > > > > > > I'm doing SetBodygroup( 1, 1 ); in the Spawn function of my NPC, > > and SetBodygroup( 1, 0 ); in the Event_Killed function - the guns are > > supposed to disappear when the NPC dies but it doesn't work at all. What > am > > I doing wrong? > > > > I've used the Buggy QC as a base for my doings (the QC entry is more or > > less the same), and same goes for the code part. > > > > I sure hope someone is able to help, I've been struggling with this all > > night now :-( > > > > > > /ScarT > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- -Tony _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders