Jump to content

Ped Follows you


Xeno

Recommended Posts

Posted

Hey guys,

I was wondering if it was possible to create a ped that follows you around, a bit like a body guard.

If so how, i would proberly get as far as this :P.

function pedLoad()
ped1 = createPed ( 287, 223, 1875, 18 )
giveWeapon( ped1, 31, 500, true )
setTimer( giveWeapon, 1000, 1, ped1, 31, 500, true)
end
 
 
addEventHandler ( "onResourceStart", getRootElement(), pedLoad )

Posted

you cannot create bot if you asking about that

if you want THINKING bot, you will need A LOT of time spend on scripting, and the script will be HUGE

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

you cannot trigger singleplayer cheats in mta

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
you cannot trigger singleplayer cheats in mta

That's not what he asked either, (and by the way, yes you can, but only a few) maybe you should read a bit more carefully.

The thing about peds is, they're somewhat difficult to control since you can only set individual controls on or off. Maybe someone could create a "control library" for peds with functions like "goTowardsPoint" or something, but until then you're stuck doing it this way.

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Posted

@tomdrum11, I made peds example script awhile ago (when MTA was out in nightly builds before 1.x). You can have a look at it, https://community.multitheftauto.com/index.php?p= ... ils&id=234

It's nothing fancy just peds that follow you, that was a purpose of the script. You can give them weapons but they won't use it.

Posted

Thank you very much, i saw the video on you tube and that gave me an idea of an admin body guard (which im makeing now) and i will be sure to mention that you helped me. Thanks :big7:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...