te_create_projectile

Синтаксис

stock te_create_projectile(position[3], velocity[3], model, life = 10, owner = 0, receiver = 0, bool:reliable = true)

Употреба

position
Projectile position
velocity
Projectile velocity
model
Model index that will be used for the projectile
life
The length of time the projectile shall remain (0 - 255)
owner
The projectile won't collide with the owner, if set to 0,
the projectile will hit any client
receiver
Client index that will be able to see the projectile
or 0 for all clients
reliable
If true, the message will be sent via the reliable
channel, otherwise it will use the unreliable one

Описание

Creates a nail-like projectile.

Забележка

Video preview of this and all other te_ stocks can be found here:
https://youtu.be/szW-bSMPuyQ?t=10m12s

Връщаща стойност

0 if "receiver" is non-zero and the client isn't connected,
1 otherwise