Bully-Board

Bully Modding Section => Modding Questions/Help => Topic started by: Ming on March 12, 2022, 07:19:17 AM

Title: Car Jacking
Post by: Ming on March 12, 2022, 07:19:17 AM
Code: [Select]
CarJack = function()
  PedSetFlag(gPlayer, 42, true)
  while true do
   
    if IsButtonPressed(15, 0) then
      PedSetActionNode(gPlayer, "Cars/ExecuteNodes/GrapThorw/Attempt/GIVE/jointDrivers", "Cars.act")
    end
    Wait(0)
  end
end
Why it doesn't work, is the node wrong ?
Title: Re: Car Jacking
Post by: RBS ID on March 12, 2022, 08:36:57 AM
Try add "/Global/" at the beginning of the node.

Btw, what does flag 42 do?
Title: Re: Car Jacking
Post by: SimonBestia on March 12, 2022, 01:38:30 PM
Flag 42 is CanDriveCars.
Title: Re: Car Jacking
Post by: Ming on March 13, 2022, 08:12:24 PM
Flag 42 is CanDriveCars.
Yes
Title: Re: Car Jacking
Post by: Ming on March 13, 2022, 08:14:17 PM
Flag 42 is CanDriveCars.
But AE version can't press button 9, button 9 doesn't show up auto
Title: Re: Car Jacking
Post by: mhdt on March 14, 2022, 12:34:07 AM
你是否用过IsButtonBeingPressed(9,0)?
Title: Re: Car Jacking
Post by: RBS ID on March 14, 2022, 01:11:27 AM
Yeah, if there's a IsButtonBeingPressed(9, 0) statement in your script, then the (✓) button will appear. Other than IsButtonBeingPressed, it'll not appear.
Title: Re: Car Jacking
Post by: Ming on March 14, 2022, 03:39:50 AM
你是否用过IsButtonBeingPressed(9,0)?
了解👍
Title: Re: Car Jacking
Post by: Ming on March 14, 2022, 03:40:52 AM
Yeah, if there's a IsButtonBeingPressed(9, 0) statement in your script, then the (✓) button will appear. Other than IsButtonBeingPressed, it'll not appear.
Ok👍