Author Topic: onPlayerKilled and onPlayerDamaged  (Read 1201 times)

Basicly, an event that would allow you to do something if a player is hurt or killed.

It would go on player spawns and would look like this

[onPlayerKilled] [instantRespawn]

or

[onPlayerDamaged] [Player] [addHealth] [100]


there's onminigamekill(ed) i think, and for onplayerdamage, you could use a loop to check their current health to the health they had last time it looped, to see if they were damaged/healed

I think all of these OnPlayerBlank suggestions would go away if someone made an events pack using the same inputs as the Bot mod.

Ex.

   OnPlayerKill
   OnPlayerKilled
   OnPlayerTouch
   OnPlayerActivated
   OnPlayerSpawn
   OnPlayerEtc.

Not everyone wants to learn to use VCE.

Not everyone wants to learn to use VCE.
but it's easy :D
also, no need for the onplayertouch, as it's already defaulted
and the onplayerkilled and onplayerkill and i think the onplayerspawn are in the minigame event pack

I think all of these OnPlayerBlank suggestions would go away if someone made an events pack using the same inputs as the Bot mod.

Ex.

   OnPlayerKill
   OnPlayerKilled
   OnPlayerTouch
   OnPlayerActivated
   OnPlayerSpawn
   OnPlayerEtc.

Not everyone wants to learn to use VCE.
They are BRICK events, god dammit.


but it's easy :D
also, no need for the onplayertouch, as it's already defaulted
The default "OnPlayerTouch" event works only when the player touches the brick.
This one refers to when the player them-selves have been touched.

but it's easy :D
also, no need for the onplayertouch, as it's already defaulted
and the onplayerkilled and onplayerkill and i think the onplayerspawn are in the minigame event pack
I meant to say OnPlayerTouched

They are BRICK events, god dammit.
I know that. You would apply them to the player spawn, like you would vehicle events to a vehicle spawn or bot events to a bot spawn.

I believe this should help.


0   [33] [OnActivate        ]  [Self    ]  [FireRelay                  ]
1   [33] [OnRelay            ]  [Self    ]  [FireRelay                  ]
2   [0  ] [OnActivate        ]  [Self    ]  [SetRaycasting          ] ["False"]
3   [0  ] [OnActivate        ]  [Self    ]  [ToggleEventEnabled] [0 2 3]
4   [0  ] [OnRelay            ]  [Self    ]  [VCEIfValue               ] [<var:pl:Health>] [ < ] [100] [5 6 7]
5   [0  ] [OnVariableTrue ]  [Player   ]  [AddHealth                ] [2]
6   [0  ] [OnVariableTrue ]  [Client    ]  [BottomPrint              ] [<color:555555>Auto-Heal Function: <color:00FF00>On.]
7   [0  ] [OnVariableFalse]  [Client    ]  [BottomPrint              ] [<color:555555>Auto-Heal Function: <color:FF0000>Off.]

This would auo heal you as soon as you start losing life.
Requires VCE to work.