Parameters |
Description |
ScriptHandle playerId |
Player identifier. |
bool dropItem |
True to drop the item, false otherwise. |
bool ragdoll |
True to ragdollize, false otherwise. |
ScriptHandle shooterId |
Shooter identifier. |
ScriptHandle weaponId |
Weapon identifier. |
float damage |
Damage amount. |
int material |
Material identifier. |
int hit_type |
Type of the hit. |
Vec3 impulse |
Impulse vector due to the hit. |
Syntax: GameRules.KillPlayer( ScriptHandle playerId, bool dropItem, bool ragdoll, ScriptHandle shooterId, ScriptHandle weaponId, float damage, int material, int hit_type, Vec3 impulse)
Kills the player.
Copyright (c) 2012. All rights reserved.
|