Stationary Radio item
Item defined in items/sh_stationary_radio.lua
Defines the Stationary Radio item, which is used to place a cw_radio entity owned by the player where they are
looking, within 192 units.
Summary
Methods
OnDrop(player, position)shared
Lets the item be dropped; nothing else happens.
Places a
cw_radio entity owned by the player where they are looking, within 192 units.Methods
Lets the item be dropped; nothing else happens.
Parameters
- player
- position
Places a cw_radio entity owned by the player where they are looking, within 192 units.
Used from the ground, the radio takes the item entity's position and angles and stays frozen if it was; otherwise it is placed flush to the ground. Keeps the item, with a notification, when the spot is too far.
Parameters
- player
- itemEntity