Thread: Question..
View Single Post
  #2  
Old 04-14-2009, 10:09 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Just use disableweapons() and use something like this to fire weapons:

PHP Code:
function onKeyPressed(codekey) {
  if (
key == "d")
    
player.weapon.trigger("WeaponFired"nil);

That should do the trick. Didn't test it though. If it doesn't work, try findWeapon(player.weapon.name).trigger("WeaponFire d", nil) instead.


Edit: For some weird reason, vB is adding some weird spaces inbetween. Just leave 'em out.
Reply With Quote