Quantcast

Jump to content

» «
Photo

Enemy >.<

11 replies to this topic
Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#1

Posted 13 June 2014 - 04:15 AM

I Am Wondering How To Spwan A Bodygaurd And A Enemy ?? 

 

 

I Dont Know Anything About That So I Have No Idea 

 

 

I only KNow This:

Vector3 epos = Player.Character.Position.Around(10.0f);
World.CreatePed(new Model("Anymodel"), epos);

heheh :)


UltraNineNine
  • UltraNineNine

    Nothing Is Really Over Until The Moment You Stop Trying

  • Members
  • Joined: 13 Mar 2014
  • None

#2

Posted 13 June 2014 - 07:42 AM

Do you want to just spawn a ped or make that ped turn into bodyguard/enemy


Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#3

Posted 13 June 2014 - 08:17 AM

nothing i got the sloution but 1 more problem

 

how to locate the spwaned ped is near or not ?

 

and how to give them a blip


Wiebrendh
  • Wiebrendh

    Beginning C# programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#4

Posted 13 June 2014 - 09:26 AM

nothing i got the sloution but 1 more problem

 

how to locate the spwaned ped is near or not ?

 

and how to give them a blip

 

For the blip you can use this:

http://www.gtamodding.com/index.php?title=ADD_BLIP_FOR_CHAR

And for the near/far u have to get the position of the ped. And then check how far away he is.


Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#5

Posted 13 June 2014 - 09:35 AM

how as i said i am new to these things :D 


Wiebrendh
  • Wiebrendh

    Beginning C# programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#6

Posted 13 June 2014 - 09:37 AM Edited by Wiebrendh, 13 June 2014 - 09:38 AM.

how as i said i am new to these things :D

 

We all know that. But i expected that u would know how to get the position of the ped and check if he is far or not...

 

I understand u dont know how natives work, i am starting to learn how it works.

 

I think it is a handy move to paste your code here, that makes it easyer


Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#7

Posted 13 June 2014 - 09:57 AM

Okay

Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#8

Posted 13 June 2014 - 11:18 AM

Just Spawn A ped and give it a class then you are able to do anything from Player.Character Namespace with the Ped


LetsPlayOrDy
  • LetsPlayOrDy

    Too fast for ya

  • Members
  • Joined: 24 Aug 2013
  • United-States

#9

Posted 13 June 2014 - 12:41 PM

Just Spawn A ped and give it a class then you are able to do anything from Player.Character Namespace with the Ped

 

Give it a variable*.

 

Like this:

Ped testPed = World.CreatePed("MODEL", Player.Character.Position.Around(10.0f));

Get distance:

float distance = testPed.Position.DistanceTo(Player.Character.Position);

Attach blip:

Blip blip;
blip = testPed.AttachBlip();
blip.Color = BlipColor.Red;
blip.Icon = BlipIcon.Person_Brucie;
blip.Name = "Test ped";

Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#10

Posted 13 June 2014 - 12:45 PM

you-talkin-to-me.jpg


LetsPlayOrDy
  • LetsPlayOrDy

    Too fast for ya

  • Members
  • Joined: 24 Aug 2013
  • United-States

#11

Posted 13 June 2014 - 12:47 PM

you-talkin-to-me.jpg

 

The first line is talking to you. The rest are talking to Rugz


LordOfTheBongs
  • LordOfTheBongs

    Deceased

  • Members
  • Joined: 21 Sep 2013
  • None

#12

Posted 13 June 2014 - 01:51 PM

i like when de niro tells keitel to suck on this and shoots him in the stomach... ahhh great movie





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users