I'd take a look at the tutorial that hides a players weapon when on a ladder, and re-shows it when they get off it. You could replace all references to the weapon hiding to something like trigger->StartTouch();.
Richard Slaughter wrote: > Hi again List, > > I'm having a weird issue with a trigger entity which is derived from > CBaseTrigger, which I'm using the StartTouch and EndTouch methods from > to flag the player as in a certain state. > > This generally works fine, however if a player mounts or dismounts a > ladder that is within the trigger entity, the EndTouch method gets > fired, even though the player is still inside the trigger. > > Anyone have any ideas why this is happening? This is a really standard > trigger that doesn't do anything special, but it's causing problems > having the EndTouch fire when it shouldn't. > > This if for an Ep1 SDK mod if that makes any difference. > > Thanks List! > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders