![]() |
#1
|
|||
|
|||
![]()
Hello,
I checked a lot of the DLL methods but I can't see how to read and set the player's health level. Does anyone have any information regarding this point ? If you have a little script example, that will be perfect. Thanks |
#2
|
|||
|
|||
![]()
You can't set the health level, only read:
float Health { get; } Example Code Code:
AiPerson singlePlayer = GamePlay.gpPlayer() as AiPerson; GamePlay.gpLogServer(null, "Person Health: {0}", new object[] { singlePlayer.Health }); |
#3
|
|||
|
|||
![]()
Hello Kodiak,
Thank you for the information. Understood about the fact that it is impossible to set the player's health but, from your point of view, how do you think the game manage the player when he is wounded ? I mean, when you get hit, you see red (if not completely dead). So I think this is managed somehow ? |
#4
|
|||
|
|||
![]()
If a player (AiPerson) is wounded
Code:
public override void OnPersonHealth(AiPerson person, AiDamageInitiator initiator, float deltaHealth) { base.OnPersonHealth(person, initiator, deltaHealth); } |
#5
|
|||
|
|||
![]()
thank you Kodiak. It should have been nice to be able to set freely the player health or wounded level but it already have the method you specified.
Thank you Frantic |
#6
|
|||
|
|||
![]()
You can damage the aircraft but not the player via script
![]() |
#7
|
|||
|
|||
![]()
Yes break the wings off and soon the pilot health will be poor
![]() |
![]() |
|
|