Binding objects

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Binding objects

Post 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?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

explain

Post by tltrude »

Explain what you want to do. Both of those are wrong.
Tom Trude,

Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Re: explain

Post 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!
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Well I'm not sure where the player's origin is but:

Code: Select all


$thingy bind $player

Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

really? is it THAT simple???!!!
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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...
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

nah, it'd be 0 0 46, - 46 would be underneath him.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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:
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

player origin

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

Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

well, blue...
your scriot didnt attatch it to the player...
but the higgins dissapeared though...
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply