ID:178198
 
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
cl = -1
should be
cl = 1
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.

obj/bullet
Bump(atom/O)
// your code

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

obj/phaserbeam
bump(atom/O)
icon = 'projectile.dmi'
icon_state = "phaser"
name = "phaserbeam"
density = 1

BYOND is case-sensitive, so bump() isn't the same as Bump().

Lummox JR