Jump to content

Object hit by anything


HeresOtis

Recommended Posts

Which opcode determines if an object has been hit by gunfire? I shot an object in my script using 0366 but the script didn't detect it as being hit.

 

 

0366:   object $1754[0] damaged 

 

 

 

08FF:   object 82@(39@,16i) received_damage_type 54

 

Link to comment
Share on other sites

 

08FF: object obj received_damage_type 22

 

Checks if object was damaged by colt45. Notice that this object must be "damagable".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.