View Single Post
  #1  
Old 01-20-2009, 04:29 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Triggering a weapon clientside

I have a script up and running that detects when a key is pressed. I have done this:

PHP Code:
player.(@ clientr.equipped[2]).trigger("PrimaryFunction"""); 
Where clientr.equipped[2] is the name of a weapon, called WeaponMelee (which has a function called onPrimaryFunction)

For some reason, it is refusing to work. Is there some sort of function that returns a weapon object?

Also, the key detection is working fine.

EDIT: Tried findWeapon() with no luck.
Reply With Quote