bind'n glue

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

bind'n glue

Post by HappyChappy_7000 »

whats the difference between bind and glue?
What? You know who I am?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post 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.
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

and you cant bind stuff to vehicles, but u can glue stuff to it.
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

you can bind stuff to vehicles...
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

not in my experience.
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post 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.
SlasherZ
Colonel
Posts: 433
Joined: Fri Jul 11, 2003 12:55 pm
Contact:

Post by SlasherZ »

what is bind or glue
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post 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.
SlasherZ
Colonel
Posts: 433
Joined: Fri Jul 11, 2003 12:55 pm
Contact:

Post by SlasherZ »

oh, thanks
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

gluing will keep the origin and angles
binding will keep the angles
hope this helps, prob not cos it's all foreign 2 me :-/
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :)
Image
Parts
Sergeant
Posts: 72
Joined: Thu Apr 10, 2003 12:35 pm
Location: UK
Contact:

Post 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?
[VS-UK]Capt.Parts[BnHQ]
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes you can attach any entity to any other entity at any tag, except you can't attach players to anything ;)
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

You can attach players to slots. I attach players to vehicle slots rather than the whole "script_origin/glue" thing.
Post Reply