Difference between revisions of "GetObjectValue"
Jump to navigation
Jump to search
add ref callng conventior
imported>JOG (The Killer-Feature...) |
imported>Behippo (add ref callng conventior) |
||
|
GetObjectvalue 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)
ref equippedweapon
short weapontype
set equippedweapon to player.[[GetEquippedObject]] 16
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}}
| |||