this proc
Bump(atom/O)
if(ismob(O)) //if I hit a player/NPC,
view() << "[O] is hit by a bullet!"
is coming up as an undifined proc could you give me an example of how I can define this proc to mean this mob.
mob/romulan
icon = 'person.dmi'
icon_state = "romulan"
cl = -1
hp = 5
ID:178198
Jun 10 2002, 10:21 am
|
|
The Bump() proc is only defined for movable atoms (objs and mobs). To override Bump(), it must belong to something. Indent it under the declaration of your bullet obj.
obj/bullet Bump(atom/O) // your code |
In response to Shadowdarke
|
|
Shadowdarke wrote:
The Bump() proc is only defined for movable atoms (objs and mobs). To override Bump(), it must belong to something. Indent it under the declaration of your bullet obj. I tried moving the bump proc under that object but I get the same error there obj/phaserbeam bump(atom/O) icon = 'projectile.dmi' icon_state = "phaser" name = "phaserbeam" density = 1 |
In response to Treasurecat
|
|
Treasurecat wrote:
I tried moving the bump proc under that object but I get the same error there BYOND is case-sensitive, so bump() isn't the same as Bump(). Lummox JR |
should be
cl = 1