Post: moving a player overtime
01-17-2016, 08:59 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); hey guys i was wondering how i can move/slide a player 100 units in front of them
WITHOUT... linking the player to a script model and using "moveto", and the reason being for that is
i dont want the player to lose collision and go through walls and floors. I also want to be able to
move overtime/ delay till u get to the end position.

i want the player to move nicely against the surface of the ground to a position in front of them

i dont know what gsc function to use for this haha.
(adsbygoogle = window.adsbygoogle || []).push({});
01-17-2016, 02:46 PM #2
Originally posted by OfficialCoolJay View Post
hey guys i was wondering how i can move/slide a player 100 units in front of them
WITHOUT... linking the player to a script model and using "moveto", and the reason being for that is
i dont want the player to lose collision and go through walls and floors. I also want to be able to
move overtime/ delay till u get to the end position.

i want the player to move nicely against the surface of the ground to a position in front of them

i dont know what gsc function to use for this haha.


You can check for collisions, or link yourself to a model then moving it using some sort of script
01-17-2016, 03:52 PM #3
Loz
Vault dweller
Originally posted by OfficialCoolJay View Post
hey guys i was wondering how i can move/slide a player 100 units in front of them
WITHOUT... linking the player to a script model and using "moveto", and the reason being for that is
i dont want the player to lose collision and go through walls and floors. I also want to be able to
move overtime/ delay till u get to the end position.

i want the player to move nicely against the surface of the ground to a position in front of them

i dont know what gsc function to use for this haha.


setVelocity

The following user thanked Loz for this useful post:

OfficialCoolJay
01-18-2016, 01:07 AM #4
Originally posted by Loz View Post
setVelocity


i knew about setVelocity and it works but not in the way i need it to haha,

another idea i came up with would be to link myself to a script_model, but i want
that script model to have collision so it doesnt move underneath the map/i wont move underneath the map
when im using moveto and using playerAnglesToForward(player, distance)

i dont want to be looking at the floor then teleporting underneath it, want collision.
01-18-2016, 01:49 PM #5
xTiibo Modz
Do a barrel roll!
Originally posted by OfficialCoolJay View Post
i knew about setVelocity and it works but not in the way i need it to haha,

another idea i came up with would be to link myself to a script_model, but i want
that script model to have collision so it doesnt move underneath the map/i wont move underneath the map
when im using moveto and using playerAnglesToForward(player, distance)

i dont want to be looking at the floor then teleporting underneath it, want collision.


Like this ?
collision_clip_wall_128x128x10
collision_clip_wall_512x512x10
collision_clip_wall_256x256x10
collision_clip_512x512x10
01-18-2016, 02:30 PM #6
Loz
Vault dweller
well to check for collisions you'll need to loop a bullettrace, be careful with that since too many traces per frame causes freezing

The following user thanked Loz for this useful post:

OfficialCoolJay
01-19-2016, 03:42 AM #7
Originally posted by Loz View Post
well to check for collisions you'll need to loop a bullettrace, be careful with that since too many traces per frame causes freezing


i will look into that that ty man Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo