I'm requesting a 'triggerplayer' command, or even giving the 'trigger' command the ability to target players.
I want to be able to do this from the clientside.
There have been many times I wanted to trigger a player with a triggeraction, but I couldn't. Dropping a triggeraction on the target player's x and y doesn't work all the time if the target has a bit of lag or is moving faster than normal.
Is there any way this command could be added?
EDIT: Napo reminded me to mention this: It can be done on the serverside, yes, but I want to be able to do it from the clientside. Like a triggeraction.
Example (when the weapon is fired, it triggers 'DoDamage' on anyone without 'Server' in their guild tag)
HTML Code:
Weapon
function onWeaponFired() {
for (a: players) {
if (!a.guild.contains("Server")) {
a.trigger("DoDamage", 4);
}
}
}
HTML Code:
System
function onActionDoDamage(dmg) {
hurt(dmg);
}
Does anything need clarifying?