HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

FPS tower

10-17-2003, 10:35 PM#1
-={tWiStÄr}=-
ok i think this is where this goes, i made a neat lil engine or whatever that kind of makes a fps tower, i did it in like 20 min so its not perfect. what happens is you get into tower mode and then you click on units and your tower attacks them, but you cant change your view around, for what i need you just going to be on tower looking at onslaught :) but here are the trigs.


Variables = tower (boolean default = false)
Code:
Trigger 1:
Events:
Player - Player 1 (red) types a chat message containing tower as an exact match
Conditions:
-NONE-
Actions:
Camera - Apply Camera 001 <gen> for Player 1 (red) over 0.00 seconds
Set tower = true

Note- I dont know how to lock camera to view

Trigger 2:
Events: 
Time - every 1.00 seconds of game time
Conditions:
tower Equal to True
Actions:
Selection - Select Gaurd tower 0000 <gen> for player 1 (red)

Note - i dont have the timing down, sometime you click and before tower shoots its switches back has to do with attack cooldown time

Trigger 3:
Events:
Player - Player 1 (red) selects a unit
Conditions:
Tower equal to True
Actions:
Unit Group - Pick every unit in (Units currently selected by player 1 (red)) and do (do nothing)
If  ((Random unit from (units currently selected by player 1 (red))) equal to gaurd tower 0000 <gen> 
Then do (unit - order gaurd tower 0000 <gen> to stop) 
else do (unit group - pick every unit in (units currently selected by Player 1 (red)) and do (Unit - order gaurd tower 0000 <gen> to attack (picked unit))

Note - this is just an engine, it will be changed to fit multiple towers and you will move next to the tower or something to get it going.

Now your probably wondering a normal tower would attack faster so why not keep that emote_sweat
well im probably going to either make the tower not attack unless your in it or make it do much less damage.
ok well this may not be new or amazing but... enjoy :D
10-17-2003, 11:10 PM#2
-={tWiStÄr}=-
oh and heres the map if you want it :D
10-18-2003, 12:46 AM#3
BleedBastards
thought u might wanna know how to lock a camera

action: Lock camera orientation to unit (or whatever)...self explanitory from here...
10-18-2003, 12:54 AM#4
-={tWiStÄr}=-
thanks but since i posted this i made a it move to that view every .01 and i dont want it to be locked to unit, camara