Raised This Month: $ Target: $400
 0% 

Help with script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NeedYourHelp
Member
Join Date: Dec 2011
Old 12-22-2011 , 12:20   Help with script
Reply With Quote #1

Hello, I need help finding a function which will make an entity move to a certain point but not like a teleport, by walking / moving over there.
NeedYourHelp is offline
NeedYourHelp
Member
Join Date: Dec 2011
Old 12-22-2011 , 20:36   Re: Help with script
Reply With Quote #2

I Found.
close the post.
NeedYourHelp is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-22-2011 , 21:37   Re: Help with script
Reply With Quote #3

Quote:
Originally Posted by NeedYourHelp View Post
I Found.
close the post.
What did you find? I'm curious as I've never seen such a function.
__________________

Last edited by fysiks; 12-22-2011 at 21:38.
fysiks is offline
NeedYourHelp
Member
Join Date: Dec 2011
Old 12-24-2011 , 05:00   Re: Help with script
Reply With Quote #4

My frend do it.
did you like i give you a server.
so you will can see.
its work ?
NeedYourHelp is offline
Larcyn
Senior Member
Join Date: Oct 2010
Old 12-24-2011 , 05:58   Re: Help with script
Reply With Quote #5

Quote:
Originally Posted by NeedYourHelp View Post
My frend do it.
did you like i give you a server.
so you will can see.
its work ?
I think he want to see the source code, not the actual plugin running.
__________________

Taking private requests, PM me for information.
Selling HideNSeek & Jailbreak plugins.

Selling Achievement API System (PHP &
MySQL / nVault)
Larcyn is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 12-24-2011 , 07:38   Re: Help with script
Reply With Quote #6

For instance a basic function to move a entity on a flat ground :

PHP Code:
stock npc_MoveToTarget( const npc, const FloatoriginNpc], const FloatoriginTarget], const Floatspeed )
{
    new 
FloatvelocityNpc], Floatlength], Floatdistance;
    
    
length] = originTarget] - originNpc];
    
length] = originTarget] - originNpc];
    
    
distance floatsqrootlength] * length] + length] * length] );
    
    
pevnpcpev_velocityvelocityNpc );
    
velocityNpc] = length] * ( speed distance );
    
velocityNpc] = length] * ( speed distance );
    
set_pevnpcpev_velocityvelocityNpc );
    
    return ( 
velocityNpc] || velocityNpc] || velocityNpc] );

__________________
micapat is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:48.


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