All i need is the simplest code for a beam where if the head hits a turf thats dense it stops and if any mob goes under the body of the beam they get burned. I have tried this god damn code variety several millon ways and all i am getting is massive frustration.
The closest thing i managed was a barrage of fireball projectiles that looked like a beam but then realized it'd go over dense turf and dense objs which screwed me over regardless if i put in a check to delete em if they were near the dense being.
So all i found is i need a beam with a dense head that can stop when it hits a dense turf or certain object but goes over a mob and burns them along with the trail/body. So anyone wanna gimme a hand
ID:1002236
|
|
Oct 4 2012, 9:15 am
Best response
|
|
It sounds like this might be something you are looking for. Please make sure to read the notes so you can understand it and be able to modify it to your liking:
|
um this looks most likely what i need but where do i put the icon="" and icon_state="" part
|
i know that but it doesnt work it jsut bitches bout indentation errors for no reason
obj/BeamBody gives me indentation errors |
The problem is that you haven't moved the code for creating the beam initially in the proper place in your code.
var/obj/BeamHead/O = new(src.loc) This creates the beam and sends it on its way, you need to put this wherever you want to trigger the beam's creation, whether it is in a verb or whatnot. |
In response to Mastergamerx
|
|
You will learn absolutely nothing by copying and pasting code into your DM environment.
|
yeha and im not going to learn anything period if someone doesn't teach me wtf to do obviously hence why im here .
|
In response to Mastergamerx
|
|
Ever heard of the phrase 'self-taught'? No? Look it up, it'll be extremely helpful. OR, there are guides and tutorials available for DM, maybe you should read through those.
|
This is why I emphasized to read the comments I placed in my original example, hopefully Mastergamerx was able to understand what he was looking at instead of just copy/pasting it.
|
In response to Mastergamerx
|
|
I taught myself to program in DM. It's very possible. NNAAAAHH is right, you're lacking ambition.
Gunbuddy13 wrote: This is why I emphasized to read the comments I placed in my original example, hopefully Mastergamerx was able to understand what he was looking at instead of just copy/pasting it. I am highly doubting he didn't just copy and paste this. |