Author Topic: Event- fire turret  (Read 1049 times)

Ive been thinking for a while  now about this, and I think someone should make this (not "immediately" though. I can wait.)

Its basically 6 events:           BTW, note that I havent mentioned tradah at all :P
Quote
input- on turret active: a event to accompany the "fire turret" events.Without this event and the "toggle turret" event, turret events are useless


output- toggle turret: This event is what turns turrets on, and off. In the "on" state, the turret can fire freely, while the "off" state completely disables the turret events for this brick


input- on shot hit: when a projectile fired from a brick (in general) hits a player


output- fire turret: fires a projectile aimed at players within a set range. The projectile is aimed by a Invisible bot at the brick's position.


output- fire at ID: turret that only fires at set ID's.


Output- fire turret ignoring ID: the turret fires ignoring certain ID's that go within range.

Also anti-spam measures should be included which would be:

  • A /command to delete all turret events
  • A limit to per-player turrets
  • A "admin only" option added VIA / command




A final note : If possible dont release this immediately. If someone makes this, take as much time as needed so the mod has high quality.but Either way, as long as it's made Im happy.  :cookieMonster:

Code: [Select]
0   1   onActivate   Self   fireRelay
0   0   onActivate   Self   cancelEvents
0   1   onActivate   Self   toggleEventEnabled 0 1
0   1   onRelay      Self   spawnProjectile Blah
40  1   onRelay      Self   fireRelay

Format:
First Number = Delay
Second Number = On/Off Checkbox (1=On 0=Off)
Third Place = Input Event
Forth Place = Target
Firth Place = Output Event
Rest = Output Parameters (for spawnProjectile...you figure it out, I'm lazy)

That will make a continuously shooting turret that you can turn off by clicking it.

Code: [Select]
0   1   onActivate   Self   fireRelay
0   0   onActivate   Self   cancelEvents
0   1   onActivate   Self   toggleEventEnabled 0 1
0   1   onRelay      Self   spawnProjectile Blah
40  1   onRelay      Self   fireRelay

Format:
First Number = Delay
Second Number = On/Off Checkbox (1=On 0=Off)
Third Place = Input Event
Forth Place = Target
Firth Place = Output Event
Rest = Output Parameters (for spawnProjectile...you figure it out, I'm lazy)

That will make a continuously shooting turret that you can turn off by clicking it.

Hm...with this I might be able to make turrets with the current events (possibly even directional based). Locking for now.