there are alot of fps out. Well what im trying to do for my 2nd part of the map. is switch from overhead 3d to first person however instead of a gun, im using a zealot. so a fpcc (first person close combat) only i have no idea how to get started. iv been trying for days. so pretty much
i need help with
W A S D key movement
Permenatly make the unit selected
view follow cursor
attack at location of cursor
Please help
Events
Unit Selection - (Unit attached to (Entire map)) is clicked by Player 1
UI - Player 1 clicks Left mouse button Down.
Local Variables
Unit Pos = (Position of Zebin [22.80, 74.26]) <Point>
Conditions
Actions
Unit - Order Zebin [22.80, 74.26] to ( Attack (Unit attached to (Entire map))) (Replace Existing Orders)
im trying to get him to attack were i click
do i have to do this with behaviors or something.
the left click from blue is set up as an event 'player licks left mouse button down' then you detect the point of where the click is 'mouseeventclickx(),mouseeventclicky()' etc.... and since the range is never going to be where you click you just 'command' your unit to click the point from the angle between your unit to where the point (x,y) mouse click event happened offset by say just 2 and make the spell a persistant etcc that makes him swing. does that make sense? im a bit tipsy, any question to clarify just ask, GL ive got maps doing this for my zealots but the animations suck in the end. until some1 comes up with a proper back animation at least IMO.
Yea i do need some clarification.on that please
cause i had a thought. couldent i just order the unit attack but set it up so that the unit will attack even if there is no unit selected.
Pretty much like in halo 2 vista when you play as the arbiter. You left click he attacks.
1) make ability effect instant
2) make it create a persistant with an offset right in front of your character (0,-.6) i believe should be about right
3) persistant does a search effect
4) search effect detects enemies and does dmg
so the zealots attack is not a real attack, its a 'spell' but when you click the spell which you gave an icon of 'attack' and a name of 'attack' he swings and all the units directly in front of him are damaged. youll also notice the zealots animation swing and swings with two blades. so you may want to make the eprsistant a bit time lagged so it damages right when the blades are fully extended, and also to possibly make the persitant create 2 searches slightly offset to the left and right to 'animate' damage from each blade.
i would suggest you just get the 'attack' spell functional, then worry about the event animations / actor stuff.
I don't think there's any need to create a persistant. You can prolly just go straight for the search area effect.
If you set the search area arc to 90 or so it should (I think) search in front of the casting unit. If you only want your unit to hit one target at a time you can set the maximum count to 1.
Set "Areas - Effect" to your effect damage and you should have a working melee effect.
yeah the arc is anothe way, i just liked the persistant to make them offset so when the right blade swings the dmg on slightly to the side hits, then vise versa with the other blade. i like the thought of trying to be nerdy and make each blade look like its doing dmg right where its swinging when the unit animates. maybe its a bit overkill...
heres a crap rendition of it. its just the basics so take from it what you will, this does not include the actor anims for blood splatter etc... but its just a basic spell thing like youre wanting i believe. and youll notice until custom animations come out, this 3rd person style looks like crap with certain units. though you can speed up the attack anim to make it look better, but in the end, he slides when he attacks, so lame....
there are alot of fps out. Well what im trying to do for my 2nd part of the map. is switch from overhead 3d to first person however instead of a gun, im using a zealot. so a fpcc (first person close combat) only i have no idea how to get started. iv been trying for days. so pretty much
i need help with
W A S D key movement
Permenatly make the unit selected
view follow cursor
attack at location of cursor
Please help
@JnAkers:
There are tons of maps that can serve as a resource for you. Here's two:
http://www.sc2mapster.com/maps/top-down-fighters/
http://www.sc2mapster.com/maps/big-blue/
Thanks man (Doctor Who rocks btw)
i was able to get wasd
but the left click from blue... im not sure how i set it up.
Events
Unit Selection - (Unit attached to (Entire map)) is clicked by Player 1
UI - Player 1 clicks Left mouse button Down.
Local Variables
Unit Pos = (Position of Zebin [22.80, 74.26]) <Point>
Conditions
Actions
Unit - Order Zebin [22.80, 74.26] to ( Attack (Unit attached to (Entire map))) (Replace Existing Orders)
im trying to get him to attack were i click
do i have to do this with behaviors or something.
the left click from blue is set up as an event 'player licks left mouse button down' then you detect the point of where the click is 'mouseeventclickx(),mouseeventclicky()' etc.... and since the range is never going to be where you click you just 'command' your unit to click the point from the angle between your unit to where the point (x,y) mouse click event happened offset by say just 2 and make the spell a persistant etcc that makes him swing. does that make sense? im a bit tipsy, any question to clarify just ask, GL ive got maps doing this for my zealots but the animations suck in the end. until some1 comes up with a proper back animation at least IMO.
Yea i do need some clarification.on that please
cause i had a thought. couldent i just order the unit attack but set it up so that the unit will attack even if there is no unit selected.
Pretty much like in halo 2 vista when you play as the arbiter. You left click he attacks.
1) make ability effect instant 2) make it create a persistant with an offset right in front of your character (0,-.6) i believe should be about right 3) persistant does a search effect 4) search effect detects enemies and does dmg
so the zealots attack is not a real attack, its a 'spell' but when you click the spell which you gave an icon of 'attack' and a name of 'attack' he swings and all the units directly in front of him are damaged. youll also notice the zealots animation swing and swings with two blades. so you may want to make the eprsistant a bit time lagged so it damages right when the blades are fully extended, and also to possibly make the persitant create 2 searches slightly offset to the left and right to 'animate' damage from each blade.
i would suggest you just get the 'attack' spell functional, then worry about the event animations / actor stuff.
This is really crazy... How am i supposed to set up the effect.
I went to add the new effect object as a persistent .
do i tell the persistant to do a search effect?
all the values are really confuseing, im am uttly and completely lost.
I don't think there's any need to create a persistant. You can prolly just go straight for the search area effect.
If you set the search area arc to 90 or so it should (I think) search in front of the casting unit. If you only want your unit to hit one target at a time you can set the maximum count to 1.
Set "Areas - Effect" to your effect damage and you should have a working melee effect.
yeah the arc is anothe way, i just liked the persistant to make them offset so when the right blade swings the dmg on slightly to the side hits, then vise versa with the other blade. i like the thought of trying to be nerdy and make each blade look like its doing dmg right where its swinging when the unit animates. maybe its a bit overkill...
I cant figure it out, If someone were to write a script for me to do it. I would be very grateful i will also list you and give you credit for it.
its like the only thing i need. then im pretty much done with map 1.
heres a crap rendition of it. its just the basics so take from it what you will, this does not include the actor anims for blood splatter etc... but its just a basic spell thing like youre wanting i believe. and youll notice until custom animations come out, this 3rd person style looks like crap with certain units. though you can speed up the attack anim to make it look better, but in the end, he slides when he attacks, so lame....