Difference between revisions of "GetObjectValue"

Jump to navigation Jump to search
212 bytes added ,  14:41, 19 August 2006
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
shortfloat weaponspeed
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}}
Anonymous user

Navigation menu