reference:server_commands:weapon_commands
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| reference:server_commands:weapon_commands [2015/02/25 17:08] – created mit | reference:server_commands:weapon_commands [2025/05/28 16:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ==== *weaponfire ==== | ==== *weaponfire ==== | ||
| - | ^ Format | *weaponfire [weapon_num], | + | ^ Format | *weaponfire [weapon_num], |
| ^ Description | Adds a weapon to the world | | ^ Description | Adds a weapon to the world | | ||
| - | + | //Example//: < | |
| - | ^ Example | + | < |
| + | { | ||
| + | $angle = 0 | ||
| + | while ( $angle < 360 ) | ||
| + | { | ||
| + | $angleX = sysSin( $angle, 100 ) | ||
| + | $angleY = sysCos( $angle, 100 ) | ||
| + | $posX = $gPlayerWorldX + $angleX | ||
| + | $posY = $gPlayerWorldY + $angleX | ||
| + | $posZ = $gPlayerWorldZ + 300 | ||
| + | | ||
| + | $angle += 36 | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| ==== *weaponfirespread ==== | ==== *weaponfirespread ==== | ||
| ^ Format | *weaponfirespread [spread_type], | ^ Format | *weaponfirespread [spread_type], | ||
| ^ Description | Adds a batch of weapons to the world | | ^ Description | Adds a batch of weapons to the world | | ||
| + | // | ||
| + | < | ||
| + | Event( " | ||
| + | { | ||
| + | $posX = $gPlayerWorldX | ||
| + | $posY = $gPlayerWorldY | ||
| + | $posZ = $gPlayerWorldZ + 2000 | ||
| - | ^ Example | *attach Bob | | + | |
| + | } | ||
| + | </ | ||
| + | </ | ||
| <note tip>If you're using the old-school method of modifying your server' | <note tip>If you're using the old-school method of modifying your server' | ||
reference/server_commands/weapon_commands.1424884101.txt.gz · Last modified: (external edit)
