hey all,
I'm trying to create point_message entities ingame for an E2 extension, it all worked out fine but only one thing doesn't work.
I can't seem to set the radius, nor target or parentname with SetKeyValue...
Does someone know how, why and how I can solve this?
Thanks
When it is created are you calling ENTITY:Spawn() and ENTITY:Activate() ?
This is what I use:
[code]self.TextEnt[Index] = infoText
self.player.TextEnt[table.Count(self.player.TextEnt)+1] = infoText
infoText.Index = Index
infoText:SetPos( Pos )
infoText:SetKeyValue( "developeronly", "false" )
infoText:SetKeyValue( "message", Message )
infoText:SetKeyValue( "radius", Rd )
infoText:Spawn()
infoText:Activate()
PrintTable(infoText:GetKeyValues())[/code]
And what infoText:GetKeyValues() returns is:
[code]
shadowcastdist = 0
ResponseContext =
gravity = 0
damagefilter =
globalname =
speed = 0
ltime = 0
friction = 1
radius = 0
TeamNum = 0
effects = 0
message = Info Text
spawnflags = 0
health = 0
parentname =
target =
classname = point_message
hammerid = 0
max_health = 0
[/code]
[editline]09:27PM[/editline]
NO WAY, it actualy works without changing things....
Well, I'm glad it works now!
At least, thanks for replying
Sorry, you need to Log In to post a reply to this thread.