Object Move
Hi how i can edit my byt move type.Now my byt jumps but i want to fly from point a to b no touch the ground.
Sorry for my english i make picture my idea :D please help me :D [IMG]http://img89.**************/img89/3969/alieds.png[/IMG] //my Code PHP Code:
|
Re: Object Move
Set movetype to MOVETYPE_FLY so it isn't affected by gravity.
Then you can set it's velocity at the speed you want it to travel from A->B. Then you can calculate how long it will take for it to reach B, and then set the velocity again so that it move from B->A. Then repeat. |
Re: Object Move
can you write code??
|
Re: Object Move
You're in Scripting Help, so you are expected to at least try yourself before asking.
|
Re: Object Move
Quote:
i don't know how set velocity. my object fly to ceiling and don't move PHP Code:
|
Re: Object Move
That's because you're actually doing that, you're setting velocity on Z axis.
Search for tutorials on origins, angles and vectors and learn to understand them first. You also need to parse a 3-cell array to that set_pev(), not each x,y,z. |
Re: Object Move
where i can find tutorial i loking Code Snippets/Tutorials and don't find anything
|
Re: Object Move
Why was I able to find it ? It took less than writing this post to find the thread: http://forums.alliedmods.net/showthread.php?t=91474
|
Re: Object Move
thank you
|
Re: Object Move
how i can get "ent origin"
for player is PHP Code:
|
| All times are GMT -4. The time now is 03:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.