Last active
August 29, 2015 14:01
-
-
Save ZaSpai/2736ae0eca9a21cb7a09 to your computer and use it in GitHub Desktop.
Creates a QC equippable weapon upon Character Death or keypress DROP_WEAPON, as sent by SendEventCreateQCWep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Performs the Create Weapon for a pickup | |
| //argument0: class of the dead character, or weapon subtype | |
| //argument1: the irandom(20) | |
| //argument2: owner x | |
| //argument3: owner y | |
| var wep; | |
| instance_create(argument2,argument3 - 8,global.QCWep); | |
| wep.direction = 80 + argument2; | |
| wep.speed = 7; | |
| wep.subtype = argument0; | |
| ds_list_add(global.qcWepList, wep); | |
| wep.wepID = ds_list_size(global.qcWepList) - 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment