How to get actor ID?

Bombini

  • *
  • Posts: 1224
Hi,
is there a way to get/draw the actor ID shown in the lower left corner of the scene editor?
Cheers!

Justin

  • *
  • Posts: 4184
Code: [Select]
actor.ID
Replace "actor" with your actor attribute, or leave it as-is for an actor behavior / events.

For Live Support: Join our discord channel and ping me @justin.

Bombini

  • *
  • Posts: 1224
That easy :)
Thank you Justin!

Bombini

  • *
  • Posts: 1224
I have a sfllow up question:
How do i kill an actor using the actor ID (i dont want to use attribute or type. Only ID)?
Something like in the attachment.

Cheers!

Justin

  • *
  • Posts: 4184
If this is a scene event, you can select "Choose Actor" from the block's dropdown and pick the actor in the scene that you want to kill.

If this is a scene behavior, you can select an actor attribute, and in the behavior page for the scene, you can specify which actor is referred to by that attribute.

If you really want to specify the ID instead of selecting the actor you want in the scene designer, the code is
Code: [Select]
getActor(1281)

For Live Support: Join our discord channel and ping me @justin.

Bombini

  • *
  • Posts: 1224
If you really want to specify the ID instead of selecting the actor you want in the scene designer, the code is
Code: [Select]
getActor(1281)

Thanks Justin!
THis is excatly what i was missing.