AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Moving Ents, move players? (https://forums.alliedmods.net/showthread.php?t=56602)

Drak 06-16-2007 21:36

Moving Ents, move players?
 
I created an entity that has a random velocity, but if i player stood on top of the entity, it continues to move without the player. Is there anyway to make the player move along with it?
( kinda like the "func_train" were when the train moves, all the players do )

Wilson [29th ID] 06-17-2007 03:20

Re: Moving Ents, move players?
 
I personally cannot think of a way to do that other than the func_train, which is very choppy.

One thing you could do, is get the entity that is standing on it (register_touch the entity with "player" entity) and move the player entity to the same origins every time the object moves.

pRED* 06-17-2007 16:53

Re: Moving Ents, move players?
 
What if you made a little lip around the edge of the platform?

If you had a walls on all sides and put the user in the middle, then they would move with it. Would they still move if those walls were 1px high?

regalis 06-18-2007 05:43

Re: Moving Ents, move players?
 
Quote:

Originally Posted by pRED* | NZ (Post 491313)
What if you made a little lip around the edge of the platform?

If you had a walls on all sides and put the user in the middle, then they would move with it. Would they still move if those walls were 1px high?

I think this would damage the player... :twisted:


All times are GMT -4. The time now is 10:40.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.