View Single Post
FawFul

JCF Member

Joined: Jun 2007

Posts: 539

FawFul is a forum legendFawFul is a forum legendFawFul is a forum legend

Feb 1, 2013, 12:39 PM
FawFul is offline
Reply With Quote
Quote:
Originally Posted by Violet CLM View Post
Two notes:

1) Trigger crates only query their Trigger ID when they're destroyed, so it's a question of the xOrg/yOrg bitfeld, not setting some other property to the desired ID.
2) Unless you're doing a single player level, you should probably use a generator object instead, so that the trigger crate is shared throughout the server. Otherwise you run the risk of the crate only existing locally and thus only changing a trigger locally.

If you still want such a script, though, I'd be tempted to do something like this pseudocode:

And then have an array of myTriggerCrateGenerator objects and call do() on each of them every tick. But this is really just reinventing the wheel.
I've seen respawning trigger crates in JCSisFUN.

The thing i just want is to regenerate any trigger crate ID that is not just ID 31 that also works in MP (as in works as well as a normal trigger crate). I've never scripted before this update, i also have no idea what psuedo-code is. I just keep wondering if this is possible for MP, and i still haven't got clear answers yet.