If you want to make a machine gun effect, you could make a periodic event where it checked if you are holding down the Left Mouse Button;
- Create a variable called "Shooting", or something like that, and make it a boolean (set to false as default).
- Create a trigger that checks for key presses and check for Left Mouse Button (pressed down), and set the variable "Shooting" to true.
- Do the same with a trigger that checks for when Left Mouse Button is being pressed up, and set the variable to false.
- Create a trigger with the Periodic Timing event (set it to...like...every 0.01 seconds - decide for yourself what you think is appropriate in your case), and check if the variable "Shooting" is true - if it's true, then make your unit execute Canister Rifle (Damage) or whatever weapon effect you want to use.
This is at least how I would've begun if I wanted to make a machine gun, but perhaps there are better and smoother ways to do it.
First of all I'm pretty newb to all this to bare with me. I tried to edit the animation from the ghost canister to the probe particle beam for a lazer effect, but when I go to save the file I get a syntax error on line 21. I thought it would be easier this way but apparently not, any suggestions? Only reason I tried to do this an alternate way is because I wouldn't know how to do the above method on my own.
when i said to make fog of war i also ment draw distance the less terrain and texture you can see the less lagy it will be im still thinking about the "outside" of the map that could also be the problem because you are looking to far out so shorten the draw distance and if THAT does not work maybe you shoud let me see how you tryed to shorten the draw distance so you might have done it wrong [just an idea you may not have done anything wrong] lol k so try that out
i use the german editor and i had to rework all the triggers and variables (becasue it deleted the name of triggers and variables)
i also did a small change (doesn't change gameplay)
here
it was the map i played around a bit
go to effects in the data editor and change the damage from 5000 to 50 plz x)
I'm creating an TPS, but I have a problem with the camera movement. If I alter the pitch too far it goes bananas. Also it doesn't rotate around the unit, it rotates around it's own origin and then updates through the Camera - Follow Unit Group action. I see that your map doesn't have that problem, but I have tried
to copy the camera settings and the triggers that alter the camera in your init function, but I still end up with the same problem. It's really annoying, can't find out what is wrong.
Have tried to look at the unit and actor settings, and nothing seems to relate to the issue. Also I have checked that the current tileset uses the camera settings that I have altered, 'Default Game Camera'. It does.
So unless it's some editor bug somewhere that is only present in my map, I really want to fix it. Thanks
I've tried messing around with the camera settings and camera actions in the triggers, but to no avail.
Yes I have the follow unit group thing and it does follow the unit but causes this weird camera movement if the pitch is too high or too low.
Like in WoW, if you move the camera to the ground, it doesn't actually go below the ground even if it seemed like it would, it will instead
move along the ground but also move further away from your hero.
It's the same here, and also it happens when you change your pitch so it shows the top of the unit, the camera starts moving about, not focusing
on the unit but rather getting shaky with the unit as it's center of attention.
Also, right now I have the settings exactly like in your map. But it still does this annoying movement.
IT USES TRACELINE??? Is it a 3-d tracline? Im downloading now if this is a3d traceline I will be able to finish my TPS!! yay
edit- downloaded it and, of course, forgot about hte bug where the triggers are messed up on download.. is there any way I can fix this?
edit 2- OMG it is 3d traceline! Im trying to get this in my own map..any suggestions to the above bug? When i import i cant really understand it because the trigger and variable names are missiing, so I cannot edit it either.
IT USES TRACELINE??? Is it a 3-d tracline? Im downloading now if this is a3d traceline I will be able to finish my TPS!! yay
edit- downloaded it and, of course, forgot about hte bug where the triggers are messed up on download.. is there any way I can fix this?
edit 2- OMG it is 3d traceline! Im trying to get this in my own map..any suggestions to the above bug? When i import i cant really understand it because the trigger and variable names are missiing, so I cannot edit it either.
Yah RE-name all the triggers and variables and it will work. Each are pretty easy to figure out since there are a lot of comments throughout the text, but you cannot edit what-so-ever until each have a name to reference to.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@zeldarules28:
It uses traceline :)
First of all I'm pretty newb to all this to bare with me. I tried to edit the animation from the ghost canister to the probe particle beam for a lazer effect, but when I go to save the file I get a syntax error on line 21. I thought it would be easier this way but apparently not, any suggestions? Only reason I tried to do this an alternate way is because I wouldn't know how to do the above method on my own.
@Eithos:
I tried editing other things, like adding in a small trigger edit to allow it to shoot Marines and other units. Syntax error on line 21.
when i said to make fog of war i also ment draw distance the less terrain and texture you can see the less lagy it will be im still thinking about the "outside" of the map that could also be the problem because you are looking to far out so shorten the draw distance and if THAT does not work maybe you shoud let me see how you tryed to shorten the draw distance so you might have done it wrong [just an idea you may not have done anything wrong] lol k so try that out
I put Raynor instead of Ghost and i got syntax error in line 21...
it can be because you use the eu version of sc2 i edited this system so you can use it with eu too
(how can i attach files?)
@chaosjones17:
Hmm...draw distance? What do you mean by that? I added fog-of-war and shortened my unit's sight radius.
@HellGateSc2:
How do regions affect the maps? We're all using the same editor, aren't we?
@HellGateSc2 When you press Reply, just click Add attachment in bottom left corner. I'm waiting for you version. It'd be very useful.
i have a map so i can show you what i meen so send me your player number and name so i can add you
@walerinho: Go
oh lol
@martinolsson: Go
i use the german editor and i had to rework all the triggers and variables (becasue it deleted the name of triggers and variables) i also did a small change (doesn't change gameplay)
here
it was the map i played around a bit
go to effects in the data editor and change the damage from 5000 to 50 plz x)
@HellGateSc2:
Oh, that seems pretty stupid of blizzard. To make you have to rework the whole thing just to edit someone else's map -.-
@HellGateSc2: Go
It did that for me on the US editor as well =/
triggers have no name (same with vars)
@martinolsson: Go
yea my whole editor bugs :(
@Molsterr: Go
very strange......
I'm creating an TPS, but I have a problem with the camera movement. If I alter the pitch too far it goes bananas. Also it doesn't rotate around the unit, it rotates around it's own origin and then updates through the Camera - Follow Unit Group action. I see that your map doesn't have that problem, but I have tried to copy the camera settings and the triggers that alter the camera in your init function, but I still end up with the same problem. It's really annoying, can't find out what is wrong. Have tried to look at the unit and actor settings, and nothing seems to relate to the issue. Also I have checked that the current tileset uses the camera settings that I have altered, 'Default Game Camera'. It does. So unless it's some editor bug somewhere that is only present in my map, I really want to fix it. Thanks
@Krakarn:
I have no idea how to solve that problem. I've never even tried to make an FPS.
@martinolsson: Go
Sorry I meant TPS.
@Krakarn:
Oh, okay. Well, I don't really know how to fix that. Are you sure you have a Follow Unit trigger action?
I've tried messing around with the camera settings and camera actions in the triggers, but to no avail. Yes I have the follow unit group thing and it does follow the unit but causes this weird camera movement if the pitch is too high or too low. Like in WoW, if you move the camera to the ground, it doesn't actually go below the ground even if it seemed like it would, it will instead move along the ground but also move further away from your hero. It's the same here, and also it happens when you change your pitch so it shows the top of the unit, the camera starts moving about, not focusing on the unit but rather getting shaky with the unit as it's center of attention.
Also, right now I have the settings exactly like in your map. But it still does this annoying movement.
IT USES TRACELINE??? Is it a 3-d tracline? Im downloading now if this is a3d traceline I will be able to finish my TPS!! yay
edit- downloaded it and, of course, forgot about hte bug where the triggers are messed up on download.. is there any way I can fix this?
edit 2- OMG it is 3d traceline! Im trying to get this in my own map..any suggestions to the above bug? When i import i cant really understand it because the trigger and variable names are missiing, so I cannot edit it either.
Yah RE-name all the triggers and variables and it will work. Each are pretty easy to figure out since there are a lot of comments throughout the text, but you cannot edit what-so-ever until each have a name to reference to.