Bully-Board

Bully Modding Section => Script Modding => LUA Scripting Help => Topic started by: Black Norton on December 25, 2013, 01:02:32 AM

Title: What Is this command??
Post by: Black Norton 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
Title: Re: What Is this command??
Post by: c00ld0c26 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)
Title: Re: What Is this command??
Post by: Black Norton on December 26, 2013, 05:23:27 AM
Ok thanks  :D