getProjectileCreator
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function returns the creator of the specified projectile.
Syntax
getProjectileCreator ( )Code Examples
client
This example will output a message in the chatbox saying who created the projectile.
addEventHandler("onClientProjectileCreation", root, function(projectile) local creator = getProjectileCreator(projectile) if (getElementType(creator) == "player") then local pName = getPlayerName(creator) local projectileID = getProjectileType(projectile) outputChatBox(pName.." created a projectile! (ID: "..projectileID..")", 255, 200, 0, false) endend)