News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: What Is this command??  (Read 2790 times)

0 Members and 1 Guest are viewing this topic.

Offline Black Norton

  • Keep Calm
  • Jr. Member
  • **
  • Posts: 86
  • Gender: Male
  • Peace For Respect
    • View Profile
What Is this command??
« on: December 25, 2013, 01:02:32 AM »
-PlayerGetPos??
-PedGetPos??
-PedMoveToPoint??
-PedCreatePoint??
-PedIsInTrigger??
-PedFollowPath??
-collectgarbage??

i need an explanation and how to use the command
thanks  :D

Offline c00ld0c26

  • The D0c
  • Moderator
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: What Is this command??
« Reply #1 on: December 25, 2013, 10:38:23 AM »
PlayerGetPos() - Its actully PlayerGetPosXYZ(), the command will return the value of the current location of the player. Example :

X,Y,Z = PlayerGetPosXYZ()
PlayerGetPosXYZ()
PedCreateXYZ(ID,X,Y,Z)

The code I just wrote will spawn a ped where the player is standing at.

PedGetPos - Its PedGetPosXYZ, its the same as the player one but here you use it with peds example :

PedGetPosXYZ(NAME)

PedMoveToPoint() - This will make the ped move to a certain point inside the trigger files. Example :

PedMoveToPoint(NAME,POINT)

PedCreatePoing() - Haven't used it yet

PedIsInTrigger() - The command is used to make conditions when a ped gets to a certain trigger (Interor usually). Example :

if PedIsInTrigger(NAME,TRIGGER) then

CODES

PedFollowPath() - The command makes a ped to follow a path in the trigger files. A path is a few points which creats a special set of points which the ped will follow. Example :

 PedFollowPath(NAME,PATH)

collectgarbage() - This command has no parameters, it simply removes lags, used mostly in the cleanup function so that when the mission is over, it'll clean up lags and messy stuff (Not peds and stuff like that)

Offline Black Norton

  • Keep Calm
  • Jr. Member
  • **
  • Posts: 86
  • Gender: Male
  • Peace For Respect
    • View Profile
Re: What Is this command??
« Reply #2 on: December 26, 2013, 05:23:27 AM »
Ok thanks  :D