Post your scripting questions / solutions here
Moderator: Moderators
-
fuhrer
- Captain
- Posts: 253
- Joined: Sun Mar 14, 2004 3:36 am
Post
by fuhrer »
can someone tell me where exactly the origin of a player is? must be at there feet but is it at 0? or slightly higher?
ill show u the script im using, the ball is landing too low.
Code: Select all
keep_up:
$keep_up_trigger waittill trigger
$ball moveUp (level.ballheight + 30)
$ball waitmove
$ball moveDown level.ballheight
$ball waitmove
goto keep_up
end
ball_height:
while(1)
{
level.ballheight = (vector_length ($ball.origin - $player.origin))
wait .01
}
end
-
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 »
here's what i did
/forum/viewtopic.php?p=48011&highlight=#48011
hope this helps, prob not cos it's all foreign 2 me :-/
-
fuhrer
- Captain
- Posts: 253
- Joined: Sun Mar 14, 2004 3:36 am
Post
by fuhrer »
yes that is the script he sent me to work with, however the ball doesnt end up on the ground if u stop it from finishing its bounce..
with the keep up i managed to get it almost land on the ground if u keep bashing it but its not quite there,
where is the players origin?
the balls origin is in the centre of the ball but the players origin i am told is at his feet, is that right at his feet or 2 units above his feet?
anyone know?
-
tltrude
- Chuck Norris
- Posts: 4774
- Joined: Sun Jul 07, 2002 4:03 am
- Location: Oklahoma, USA
-
Contact:
Post
by tltrude »
The players origin is bottom center of the bounding box. You can see the origins, if you look at your map with tris 2 on.

Tom Trude,
