Author Topic: createentity() parameters  (Read 227 times)

mayo pigeon

  • Crewmate
  • **
  • Posts: 33
  • mmmmayonnaise time
    • View Profile
createentity() parameters
« on: May 08, 2020, 06:39:16 pm »
i've been trying to work out how the mysterious createentity() command works, but to so far no avail. to many i'll sound like an idiot, but how do i use it?

Dav999

  • Global Moderator
  • Captain
  • *****
  • Posts: 2182
    • View Profile
    • The Open Level Project
Re: createentity() parameters
« Reply #1 on: May 08, 2020, 08:07:12 pm »
The parameters are x,y,n,meta1,meta2. x and y are in pixels, n is the entity type. A list of entity types can be found in various places (here, here, and the help in Ved). meta1 and meta2 depend on the entity, if not used, just set them to 0.

For example, createentity(8,8,3,0,0) creates a disappearing platform at 1 tile from the top left corner.

mayo pigeon

  • Crewmate
  • **
  • Posts: 33
  • mmmmayonnaise time
    • View Profile
Re: createentity() parameters
« Reply #2 on: May 09, 2020, 10:31:02 am »
thanks. now I can make cool stuff