VC:MP 0.4 (Beta) > Script Discussion

What does ".Immunity" do?

(1/1)

Honey.:
Hi,

Recently I saw that there is an entity of .Immunity for both Player and Vehicle.I wanted to know what it does and how do we use it?

Honey.:
Hello, Anybody there?

btw, I learned how to use it using the source code but what does it do? Even when i change immunity to 100 nothing happens.

S.L.C:
Apparently it's using Bit Fields to enable certain immunity flags/options for those entities. But nobody posted any information on what those bit fields actually turn off or turn on. You might have to ask someone with access to the actual source code or has some knowledge about them.

Honey.:
I'm sure Stormeus &   maxorator, both are senior team members.One of them should help us soon.

stormeus:

--- Code: ---Binary  | Hex  | Dec | Field
---------------------------------------
0b00001 | 0x1  |  1  | bulletproof
0b00010 | 0x2  |  2  | fireproof
0b00100 | 0x4  |  4  | explosion-proof
0b01000 | 0x8  |  8  | collision-proof
0b10000 | 0x10 |  16 | melee-proof

--- End code ---

0 means no immunity to any damage, 31 means immunity to all damage. You can add all the numbers together or use bitwise OR/AND to toggle flags.

Navigation

[0] Message Index

Go to full version