Jump to content

Start a Controlled Fire?


AlexanderK.

Recommended Posts

Hello.
 

I know others have already implemented that, but how it is possible to start a Controlled Fire?  By Controlled, I mean specified Area and X Minutes duration. 

The purpose is to start the controlled fire in a Callout.


I have only found outdated info in this topic, so I would appreciate a little updated code!

Thank you!

HELLO!!     I'm a Greek guy and YouTuber.   I really like Modding and playing LSPDFR!  I'm  very familiar with Programming (Coding) and PC Hardware / Software. I'm also a Cuber ( I Solve Rubicks Cubes and other kinds).   

My YouTube Channel:  https://www.youtube.com/c/ATGGGR/

 

 

 

Link to comment
Share on other sites

  • Community Team

I've been trying to do the same. There is Rage.fire entity, but it has no way to spawn it. You can set set the duration it burns, position, and parent etc, but can't create a new one that I can see. I've resorted to using an explosion to start a fire but it is not very reliable.

Join my Discord server!
Click Me!

Link to comment
Share on other sites

Use the native START_SCRIPT_FIRE

int START_SCRIPT_FIRE(float X, float Y, float Z, int maxChildren, BOOL isGasFire)
  
// Starts a fire:  
// xyz: Location of fire  
// maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing.  
// isGasFire: Whether or not the fire is powered by gasoline. 

 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

Link to comment
Share on other sites

On 9/3/2019 at 9:34 PM, AlexanderK. said:

Hello.
 

I know others have already implemented that, but how it is possible to start a Controlled Fire?  By Controlled, I mean specified Area and X Minutes duration. 

The purpose is to start the controlled fire in a Callout.


I have only found outdated info in this topic, so I would appreciate a little updated code!

Thank you!

 

@NoNameSet Has a Fire wrapper class that he made a long time ago.  https://gist.github.com/NoNameSet/caf779fd7385f1f77b135d52c807e807 

Link to comment
Share on other sites

  • Community Team
17 hours ago, PNWParksFan said:

Use the native START_SCRIPT_FIRE


int START_SCRIPT_FIRE(float X, float Y, float Z, int maxChildren, BOOL isGasFire)
  
// Starts a fire:  
// xyz: Location of fire  
// maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing.  
// isGasFire: Whether or not the fire is powered by gasoline. 

 

Thank you so much, I have gone over native functions so much yet I missed this one, appreciate the help.

Join my Discord server!
Click Me!

Link to comment
Share on other sites

On 9/8/2019 at 11:26 AM, PNWParksFan said:

Use the native START_SCRIPT_FIRE


int START_SCRIPT_FIRE(float X, float Y, float Z, int maxChildren, BOOL isGasFire)
  
// Starts a fire:  
// xyz: Location of fire  
// maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing.  
// isGasFire: Whether or not the fire is powered by gasoline. 

 

 

12 hours ago, 420Chuur said:

 

@NoNameSet Has a Fire wrapper class that he made a long time ago.  https://gist.github.com/NoNameSet/caf779fd7385f1f77b135d52c807e807 

 

8 hours ago, SuperPyroManiac said:

Thank you so much, I have gone over native functions so much yet I missed this one, appreciate the help.

Thank you so much guys!

HELLO!!     I'm a Greek guy and YouTuber.   I really like Modding and playing LSPDFR!  I'm  very familiar with Programming (Coding) and PC Hardware / Software. I'm also a Cuber ( I Solve Rubicks Cubes and other kinds).   

My YouTube Channel:  https://www.youtube.com/c/ATGGGR/

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...