Page 1 of 1
Anyone know how to give players points?
Posted: Tue Aug 01, 2006 2:33 pm
by [RDH]Zerted
I'm almost finished with my Deathmatch game mode. The main problem I'm having is that I can't award anyone doing good. I haven't been able to figure out how to give a player some extra points. Does anyone have any ideas on how to do this?
Posted: Wed Aug 02, 2006 9:10 am
by xwingguy
I found this in ObjectiveSpaceAssault. It's the only thing like it that I can find:
Code: Select all
AddSpaceAssaultDestroyPoints(killer, GetEntityName(objectPtr))
He's it's context:
Code: Select all
OnObjectKillName(
function (objectPtr, killer)
self:OnCriticalSystemDestroyed(name, pointValue)
AddSpaceAssaultDestroyPoints(killer, GetEntityName(objectPtr))
SetProperty(objectPtr, "MaxHealth", 99999999999.0) --effectively makes the object un-repairable
self:UpdateObjectiveMessage(name)
end,
name
)
NOTE: It may also require that this line exists. I can't find AddSpaceAssaultDestroyPoints() is defined so I assume that you need this line before it is used.
Edit: Wow...I just noticed that you could ask for the objectPtr instead of just object....