Difference between revisions of "GetObjectValue"

212 bytes added ,  14:41, 19 August 2006
add ref callng conventior
imported>JOG
(The Killer-Feature...)
 
imported>Behippo
(add ref callng conventior)
Line 3: Line 3:
  GetObjectvalue ValueType [ObjectID]
  GetObjectvalue ValueType [ObjectID]
  GetOV Valuetype [ObjectID]
  GetOV Valuetype [ObjectID]
ref.GetObjectValue ValueType
ref.GetOV ValueType


Returns the requested value for either the specifed ObjectID or the calling reference. Returns 0 if the value type doesn't match (asking a weapon for an armor rating or clothing for a health value)
Returns the requested value for either the specifed ObjectID or the calling reference. Returns 0 if the value type doesn't match (asking a weapon for an armor rating or clothing for a health value)
Line 10: Line 12:


  ref equippedweapon
  ref equippedweapon
  short weaponspeed
  float weaponspeed
  short weapontype
  short weapontype
  set equippedweapon to player.[[GetEquippedObject]] 16
  set equippedweapon to player.[[GetEquippedObject]] 16
Line 16: Line 18:
  set weapontype to getov 103 equippedweapon
  set weapontype to getov 103 equippedweapon


'''Calling from a script on an object'''
float weaponspeed
short weapontype
begin OnEquip
  set weaponspeed to GetOV 102
  set weapontype to GetOV 103
end


{{OBSEValuetypes}}
{{OBSEValuetypes}}
Anonymous user