getProjectileType
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function returns the type of the specified projectile.
OOP Syntax Help! I don't understand this!
- Method:projectile:getType(...)
- Variable: .type
Syntax
int getProjectileType ( projectile theProjectile )Required Arguments
- theProjectile: The projectile element which type you want to retrieve.
Returns
- int: value
Returns an integer over the type of the projectile or false if invalid arguments were passed.
Code Examples
shared
function projectileCreation() local theType = getProjectileType(source) outputChatBox("A projectile was created! It's type: "..theType)endaddEventHandler("onClientProjectileCreation", getRootElement(), projectileCreation)