Heres my codepiece:
Code: Select all
OnEnterRegion(
function(regIn,character)
ScriptCB_SetPlayerStatsPoints( Playerpoints )
SetProperty("Playerpoints", Playerpoints+5)
end,
"megapoints"
)
thanks! :]
Moderator: Moderators
Code: Select all
OnEnterRegion(
function(regIn,character)
ScriptCB_SetPlayerStatsPoints( Playerpoints )
SetProperty("Playerpoints", Playerpoints+5)
end,
"megapoints"
)


Code: Select all
AddAssaultDestroyPoints(character)Megapoints is the name of the region you enter to get pointsShouldn't "megapoints" be in front of: "end,"? I imagine that ending the function then trying to do something isn't going to work. I don't know, correct me if I'm wrong.
Code: Select all
OnEnterRegion(
function(regIn,character)
AddAssaultDestroyPoints(character)
end,
"megapoints"
)