im making a bomb code for my icon game cause my friend wants to do something with it i dont know but it wont blow up
code :
obj
bomb
icon = 'bomb.dmi'
Enter()
var/obj/O
for(O in oview(5))
del(O)
var/turf/T
for(T in oview(5))
del(T)
ID:147933
Sep 19 2003, 3:22 pm
|
|
Sep 19 2003, 3:51 pm
|
|
You cant use Enter() there.
|
In response to Jotdaniel
|
|
Jot is right. You need to set the density of the bomb to 1 and use Bump() instead of Enter(). Or you could mess around with turf/Entered() procs, but Bump() is easier.
Your other problem is that you cannot delete turfs. If you have a turf that you want to be deleted when the bomb goes off, then either: (A) make it an obj; or (B) create new turfs at those turfs (i.e. replace the turf) when the bomb goes off. |