11-07-2013, 04:30
(This post was last modified: 11-07-2013, 04:31 by DidUknowiPwn.)
Alright so I'm recreating Hunted from Ghosts right now for MW2 and I've come across only one issue so far.
I can't seem to figure out how to use 'doFlyby' correctly. I mean yeah it's just some inputs but I want to change the carepackage from giving killstreaks to weapons. As well as giving a limit.
The limit would be something like: which should be correct. Anyway, how do I 'spawn a carepackage heli' that drops a carepackage but gives the player a random weapon.
Random weapon is obviousso yeah....
I can't seem to figure out how to use 'doFlyby' correctly. I mean yeah it's just some inputs but I want to change the carepackage from giving killstreaks to weapons. As well as giving a limit.
The limit would be something like:
Code:
for( i = 0; i < 5; i ++ )
Random weapon is obvious
Code:
self.randomWep = level.weaponList[randomInt(level.weaponList.size)];
self giveWeapon( self.randomWep, 0, true );
Do not take life too seriously. You will never get out of it alive.