Skip to content

Commit 66becc9

Browse files
authored
Fix OnBeamCollision oversight (#5021)
1 parent 47564d1 commit 66becc9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

code/scripting/global_hooks.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,13 @@ const std::shared_ptr<OverridableHook<CollisionConditions>> OnBeamCollision = Ov
166166
"Invoked when a beam collides with another object.",
167167
{ {"Self", "object", "The \"other\" object that collided with the beam."},
168168
{"Object",
169-
"ship",
170-
"The ship object with which the \"other\" object collided with. Provided for consistency with other "
169+
"weapon",
170+
"The beam object with which the \"other\" object collided with. Provided for consistency with other "
171171
"collision hooks."},
172-
{"Ship", "ship", "Same as \"Object\""},
172+
{"Beam", "weapon", "Same as \"Object\""},
173173
{"Hitpos", "vector", "The world position where the collision was detected"},
174174
{"Debris", "object", "The debris object with which the beam collided (only set for debris collisions)"},
175+
{"Ship", "ship", "The ship object with which the beam collided (only set for ship collisions)"},
175176
{"Asteroid", "object", "The asteroid object with which the beam collided (only set for asteroid collisions)"},
176177
{"Weapon", "weapon", "The weapon object with which the beam collided (only set for weapon collisions)"}});
177178

0 commit comments

Comments
 (0)