Did you ever tell yourself that ?...
I did once
But I don't anymore >:D
now you don't have too either!!
basic Setparenting...
ok so you spawn you two props.. phyisics or dynamic [whichever floats your boat....]
then setname then both a differnt name like {bob] and {lawl]
thennn.....
type this in console....
ent_fire bob setparent lawl
I found a litte trick to doing this....
say the first one you name {bob} is the one your trying to setparent o the other prop...then that goes first like ent_fire >>BOB<<setparent lawl...
^^ If anyone has anything to add like advanced parenting plz post it
omfg setparenting D:
-
- 250+ Posts
- Posts: 344
- Joined: Sun Apr 11, 2010 1:48 am
- Location: Louisiana
omfg setparenting D:
Oof.
-
- Former Server Admin
- Posts: 265
- Joined: Fri Aug 06, 2010 2:08 pm
Re: omfg setparenting D:
Unfortunatly i do not have much time since im trying to stop being addicted to hl2dm and scripting and getting back into reallife.
And instead of flaming about you, just want to help... i will try to join and share a bit of my knowledge.
ent_fire prop setparent prop2 // <= Known and explained above
ent_fire prop clearparent //<= removes the parent
And something cool:
ent_fire prop setparentattachment <attachment>
What does it do ? And... HAO BLADE HAO ?
Okay, always wondered how to make a Melon attach to your head without glue ?
Well, here comes the solution => setparentattachment
Example:
ent_setname melon
ent_fire melon setparent bla
ent_fire melon setparentattachment anim_attachment_head// thats the name of the attachment for the head, so dont wonder about it ( Only the player models have this attachment, dont try to parent the melon to the head of a blastdoor...)
FAQ:
Okay... the melon knows where to attach... but not to what prop ?
=> You always need to parent it to the prop first, this kinda sets its parent"target"
Are there more attachments ?
=> Yes. anim_attachment_rh and lh // right hand & left hand ( Ofc there more, but how and where to find those will probably be showed in my next post )
Wait, arnt you in SaD ?
=> True... but theres a big difference between teaching stuff (which is totally okay btw) and just uploading it for all teh noobs in teh world.
Have fun, Blade
PS: Doesnt work with classname.
PSS:
And instead of flaming about you, just want to help... i will try to join and share a bit of my knowledge.
ent_fire prop setparent prop2 // <= Known and explained above
ent_fire prop clearparent //<= removes the parent
And something cool:
ent_fire prop setparentattachment <attachment>
What does it do ? And... HAO BLADE HAO ?
Okay, always wondered how to make a Melon attach to your head without glue ?
Well, here comes the solution => setparentattachment
Example:
ent_setname melon
ent_fire melon setparent bla
ent_fire melon setparentattachment anim_attachment_head// thats the name of the attachment for the head, so dont wonder about it ( Only the player models have this attachment, dont try to parent the melon to the head of a blastdoor...)
FAQ:
Okay... the melon knows where to attach... but not to what prop ?
=> You always need to parent it to the prop first, this kinda sets its parent"target"
Are there more attachments ?
=> Yes. anim_attachment_rh and lh // right hand & left hand ( Ofc there more, but how and where to find those will probably be showed in my next post )
Wait, arnt you in SaD ?
=> True... but theres a big difference between teaching stuff (which is totally okay btw) and just uploading it for all teh noobs in teh world.
Have fun, Blade
PS: Doesnt work with classname.
PSS:
Cant find the tricky part O.o what do you mean ?I found a litte trick to doing this....
"Coming in peace is for simpletons and dullards! I come in AWESOME!" - The Duke
-
- Former Server Admin
- Posts: 1251
- Joined: Fri Apr 09, 2010 4:01 pm
- Location: Norway, Oslo
Re: omfg setparenting D:
Best script <3
prop_dynamic_create napalm/gaybitch.mdl
ent_setname napalmisgay
ent_fire napalmisgay addoutput "rendercolor 1 3 3 7"
ent_fire napalmisgay addoutput "health 1"
ent_fire napalmisgay color 1
wait;wait;wait;wait
exec lab
name NAPALM IS GAY
writeconfig
prop_dynamic_create napalm/napalmchair.mdl
ent_fire napalmisgay setparent
clear
echo ADMIN HACK IS NOW LOADED!
lol hahahahhahahaha
prop_dynamic_create napalm/gaybitch.mdl
ent_setname napalmisgay
ent_fire napalmisgay addoutput "rendercolor 1 3 3 7"
ent_fire napalmisgay addoutput "health 1"
ent_fire napalmisgay color 1
wait;wait;wait;wait
exec lab
name NAPALM IS GAY
writeconfig
prop_dynamic_create napalm/napalmchair.mdl
ent_fire napalmisgay setparent
clear
echo ADMIN HACK IS NOW LOADED!
lol hahahahhahahaha
-
- 250+ Posts
- Posts: 344
- Joined: Sun Apr 11, 2010 1:48 am
- Location: Louisiana
-
- 250+ Posts
- Posts: 344
- Joined: Sun Apr 11, 2010 1:48 am
- Location: Louisiana
Re: omfg setparenting D:
and i mean by the trick is if you do this,,,, name one bob then toher lawl say your trying to setparent bob to lawl but you type ent_fire lawl setparent bob it fucks up....
Oof.
-
- Site Admin
- Posts: 4390
- Joined: Fri Apr 09, 2010 3:20 pm
- Location: United States
Re: omfg setparenting D:
The command "setparent" isnt just named that for the hell of it. It means: link the child-prop to a parent-prop, so order does matter.
Re: omfg setparenting D:
Lol. Again: Wheres the trick? xD setparent means ... "1 setparent TO 2" LolNapalm wrote:and i mean by the trick is if you do this,,,, name one bob then toher lawl say your trying to setparent bob to lawl but you type ent_fire lawl setparent bob it fucks up....
-
- 250+ Posts
- Posts: 344
- Joined: Sun Apr 11, 2010 1:48 am
- Location: Louisiana
-
- Former Server Admin
- Posts: 265
- Joined: Fri Aug 06, 2010 2:08 pm
Re: omfg setparenting D:
Hey Enel, x setparent y means => x got its parent set to y
"Coming in peace is for simpletons and dullards! I come in AWESOME!" - The Duke
-
- Site Admin
- Posts: 4390
- Joined: Fri Apr 09, 2010 3:20 pm
- Location: United States
Re: omfg setparenting D:
Combine and Rebel faces don't change too much in game.Napalm wrote:Tell this to a noob in person and watch their face...
Re: omfg setparenting D:
Hahahha xD Lol, nice oneant_8490 wrote:Combine and Rebel faces don't change too much in game.Napalm wrote:Tell this to a noob in person and watch their face...
-
- 250+ Posts
- Posts: 344
- Joined: Sun Apr 11, 2010 1:48 am
- Location: Louisiana
Re: omfg setparenting D:
Hmmm i did...
MAYBE
MAYBE