Page 1 of 1

Binding objects

Posted: Mon May 24, 2004 10:16 pm
by Master-Of-Fungus-Foo-D
well how do i bind something to my players feet?

would i need to use a line like something this?

$origin.bind = $player
or $object.bind = $player

or would i need to use a trigger?

explain

Posted: Mon May 24, 2004 10:31 pm
by tltrude
Explain what you want to do. Both of those are wrong.

Re: explain

Posted: Mon May 24, 2004 10:39 pm
by Master-Of-Fungus-Foo-D
tltrude wrote:Explain what you want to do. Both of those are wrong.
yeah i kind of thought they were wrong... i was just guessing :oops: :oops:

have you ever played ****CrazyServerMods****?
well i want to do something like they do... bonding objects to a player's feet. Then it removes player physics and lets you move forward while staying at the same height!like many other newbs, i marvel at the complex scripting and long hours this must take. I NEED to learn how to bind this stuff!

Posted: Mon May 24, 2004 10:58 pm
by blue60007
Well I'm not sure where the player's origin is but:

Code: Select all


$thingy bind $player


Posted: Mon May 24, 2004 11:20 pm
by Master-Of-Fungus-Foo-D
really? is it THAT simple???!!!

Posted: Tue May 25, 2004 12:32 am
by blue60007
Well, the player's origin is probably at waist high, so you'll need to loop a script that updates it's postion:

Code: Select all

thread attatch_thingy

attatch_thingy:


$attatch_thingy.origin = $player.origin + 0 0 -46//player's origin, but 46 units lower

goto attatch_thingy

end

I don't think the $player.origin + 0 0 -46 is quite right but it's the idea...

Posted: Tue May 25, 2004 12:59 am
by lizardkid
nah, it'd be 0 0 46, - 46 would be underneath him.

Posted: Tue May 25, 2004 1:19 am
by blue60007
But where is the player's origin? If it is waist high, then you'd want to use -46 so it is at his feet. :wink:

player origin

Posted: Tue May 25, 2004 2:44 am
by tltrude
The players origin is on the ground (blue and green cross). So, (0 0 46) would put it at his hips.

Image

Btw, the rectangle on the ground is for the shadow and it rotates around the players origin as he walks.

Posted: Tue May 25, 2004 10:58 am
by Master-Of-Fungus-Foo-D
well, blue...
your scriot didnt attatch it to the player...
but the higgins dissapeared though...

Posted: Tue May 25, 2004 2:54 pm
by lizardkid
so what you are trying is to make the player control the higgens?

try looking at the first driving tut here at .map, it hows how to control a tank, my guesss is it's the same principal. but, if you'd like to try something fast...

Code: Select all

$higgins show
your script might be causing it to somehow use the hide keyword. show is the opposite.