Hey, I'm a little confused on how to add new rules to my Gameinfo subclass. What I want to do is if a player enters a warp, add X points to their score. Any idea on how to tell the game when a player warps?
Announcement
Collapse
No announcement yet.
Player warps
Collapse
X
-
Sorry, still having some trouble. I'm subclassing WarpInfo so when a player enters a warp, it calls the gameinfo class. This is nice and all, but I need to find out when the game is calling Warpinfo.Actorentered so I can replace it with the subclassed version. Otherwise the game won't have a clue and just work normally. Anyone know how to pull this off?
and just in case, here's the short code
Code:class MyWarp extends WarpZoneInfo; simulated function ActorEntered( actor Other ) { local WSGame myGame; myGame = WSGame(other.Level.Game); myGame.PawnShop(other); }
Thanks a lot :noob:
Comment
Comment