5,389
edits
m (→Weapon Codes) |
|||
Line 142: | Line 142: | ||
*"amount" seems to be ignored in the case of '''lsi''', as the associated variable is a [[OSL:Data|boolean]]. In particular, you can't take an '''lsi''' item away. | *"amount" seems to be ignored in the case of '''lsi''', as the associated variable is a [[OSL:Data|boolean]]. In particular, you can't take an '''lsi''' item away. | ||
==Spawning loose items== | ==Spawning loose items== | ||
It's | It's less complicated that giving items... or spawning characters. | ||
===Spawning a weapon=== | ===Spawning a weapon=== | ||
<tt>void weapon_spawn(string weapon_name, int flag_id)</tt> | |||
*The first argument is a valid weapon name (see table above) | |||
*The second argument is the index of a [[OSL:Flags|flag]] (preset position + orientation). | |||
===Spawning a powerup=== | |||
<tt>void powerup_spawn(string powerup_name, int flag_id)</tt> | |||
*The first argument is a valid powerup name (see table above) | |||
*The second argument is the index of a [[OSL:Flags|flag]] (preset position + orientation). | |||
==Associated stuff== | ==Associated stuff== |