31
Script Modding / Re: *RELEASE* - Bully LUA Script Sources (just a few)
« on: December 31, 2012, 12:56:21 PM »
Any way to get the bodyguard to spawn on a bike?
News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..
Messages | Topics | Attachments
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
PedSetTypeToTypeAttitude(1, 13, 0)
SetFactionRespect(1, 0)
The first line sets the nerds to attack the player on sight, and the second line sets their 'respect percentage' in the menu to 0%.PedSetFaction(l_1_7, 1)
This example in particular when added onto the debug bodyguard script madman has on the first page will turn whoever you spawned as your bodyguard into a nerd.
Code: [Select]ImportScript("\\Library\\LibTable.lua")
ImportScript("\\Library\\LibPed.lua")
local l_0_0 = false
MissionSetup = function()
local l_1_0 = 270
local l_1_1 = -110
local l_1_2 = 6.4000000953674
PlayerSetHealth(200)
AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
local l_1_3 = 216
local l_1_4, l_1_5, l_1_6 = PedGetPosXYZ(gPlayer)
local l_1_7 = PedCreateXYZ(l_1_3, l_1_4 + 1, l_1_5 + 1, l_1_6)
PedSetActionTree(l_1_3, "/Global/J_Ted", "Act/Anim/J_Ted")
end
MissionCleanup = function()
end
main = function()
repeat
Wait(0)
until l_0_0 ~= false
Wait(3000)
MissionSucceed()
end
* Survivors [ ]
Edit - JmTshaW, question: did you add an if statement to the bottom line?