Jump to content

Help in Scripting


Recommended Posts

I want to ask that I was creating a script that makes at every 1 min a helicopter comes and kill police men beacuse at wanted level 6 police is crazy to kill but my intension was that only one helicopter at a time for eg: if helicopter destroyed or pilot down or sharpshooter dead then only new helicopter spawn.

 

Can any one help me 

Sgautam

Link to comment
Share on other sites

  • Management Team

You can check whether the entity you have is alive or dead, that should help you.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Link to comment
Share on other sites

  • Management Team

I am happy to help you with your code, but I am not going to provide you with all the code needed for this.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Link to comment
Share on other sites

  • Management Team
25 minutes ago, Xonyne88 said:

@LMS may I provide him the code snippet?

 

Sure, go ahead 🙂

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Link to comment
Share on other sites

Alright, I will try to give you the code, but keep in mind, this code is for GTA V. @LMS can you move this topic to gta v support?
So to check if an entity is still alive you can do:
 

if (Entityobject.IsAlive) {
// do this
}

Keep in mind that you have to define Entityobject as a Rage.Entity.

Link to comment
Share on other sites

  • Management Team
46 minutes ago, Xonyne88 said:

Alright, I will try to give you the code, but keep in mind, this code is for GTA V. @LMS can you move this topic to gta v support?
So to check if an entity is still alive you can do:
 


if (Entityobject.IsAlive) {
// do this
}

Keep in mind that you have to define Entityobject as a Rage.Entity.

 

Considering his previous scripts are for GTA IV, it would probably be a safer assumption that he actually wants help with GTA IV. 

"Work and ideas get stolen, then you keep moving on doing your thing."

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...