View Single Post
Old 10-24-2010, 09:21 PM   #63
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
What's wrong with it?

This line determines how long the trigger is disabled for:
Code:
AddSchedule("Reenable Scoring", 1, reallowscoring)
I'd change it to:
Code:
AddSchedule("reenablescoring", self.disabletime, self.reallowscoring)
That will both allow you to set a different disable time per-trigger and call the right function, since reallowscoring is a member function of the basescoretrigger class.

And then change
Code:
basescoretrigger = info_ff_script:new({
canscore = true,
score = 0,
})
to

Code:
basescoretrigger = trigger_ff_script:new({
canscore = true,
score = 0,
disabletime = 10
})
Do you want it to only disable for the player that touched it or for all players everytime someone touches it?
__________________
#FF.Pickup ยค Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington

Last edited by squeek.; 10-24-2010 at 09:22 PM.
squeek. is offline   Reply With Quote