Posts
10
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Look in nazi_zombie_sumpf and check for the meteor_trigger() function. This is how a basic "damage trigger" looks like. You can see that they have it set so you can only activate the trigger if you're within a certain distance (maybe so you don't accidently shoot it from across the map) but you can easily remove that. The trigger is an ent spawned in radiant that the function grabs, then waits for a player to damage it, and then does something (which in this case threads a voiceover function, which is where you could thread the next shootable trigger function or change any variables you may want i.e. level.steps_completed= 1 etc etc).
Triggers are always in "while" loops but you can remove the outter "for" loop because that makes it so it runs separatly for each player. You probably want it so once a player shoots it, then that step is completed and no one can shoot it. Or look at the Fly Trap easter egg. That one's interesting because it might help you more once you understand the basic trigger in sumpf. It starts with one trigger, that leads to 3 more being created, and then once all 3 are shot then something happens.