Page 1 of 2
bind'n glue
Posted: Sat Jul 12, 2003 6:53 am
by HappyChappy_7000
whats the difference between bind and glue?
Posted: Sat Jul 12, 2003 7:17 am
by tltrude
glue( Entity parent, [ Integer glueAngles ] )
glue this entity to the specified entity.
bind( Entity parent )
bind this entity to the specified entity.
You can set glueAngles with glue.
Posted: Sat Jul 12, 2003 7:35 am
by jv_map
Uh well basically glue attaches an entity to the origin of an other entity.
Bind makes the entity follow an other entity (when it moves) at the initial offset from it's origin.
Posted: Sat Jul 12, 2003 4:59 pm
by Alcoholic
and you cant bind stuff to vehicles, but u can glue stuff to it.
Posted: Sun Jul 13, 2003 12:14 am
by nuggets
you can bind stuff to vehicles...
Posted: Sun Jul 13, 2003 12:17 am
by Alcoholic
not in my experience.
Posted: Sun Jul 13, 2003 12:18 am
by Alcoholic
btw if you could, people wouldnt screw around with script_model vehicles. they would just use the vehicle itself, and bind the gluespot to it.
Posted: Sun Jul 13, 2003 12:24 am
by SlasherZ
what is bind or glue
Posted: Sun Jul 13, 2003 2:36 am
by Alcoholic
they are script functions that stick entities to other entities. for example, you could put a box of grenades on that opel truck in your map, supply warehouse. if you made the truck move, the boxes would move with it.
Posted: Sun Jul 13, 2003 10:29 am
by SlasherZ
oh, thanks
Posted: Sun Jul 13, 2003 4:17 pm
by nuggets
gluing will keep the origin and angles
binding will keep the angles
Posted: Sun Jul 13, 2003 6:32 pm
by jv_map
Well if the object is moving (i.e. rotating or doing any move command) any entities bound to it will move with it

Posted: Mon Jul 14, 2003 10:19 am
by Parts
As we are talking binding and glueing we should probably talk attaching as well!
Does attaching only work for a human?
Let me give you an example of something I thought about doing and then someone can let me know if it's possible. I wanted to create a plane and "attach" two machine guns to it (probably mg42s). By doing this I could have a plane flying around a map firing bullets at players.
What would be the best way to do this? any thoughts?
Posted: Mon Jul 14, 2003 10:24 am
by jv_map
Yes you can attach any entity to any other entity at any tag, except you can't attach players to anything

Posted: Mon Jul 14, 2003 9:21 pm
by Alcoholic
You can attach players to slots. I attach players to vehicle slots rather than the whole "script_origin/glue" thing.