Please Help Support E-Mods.net by Donating

e-mods.net

  • 2017-11-17, 14:55:18
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search

News:

Looking for VTMR Modding Tutorials? Check out the Open Nod Development section of e-mods.net.

Author Topic: CreateThing method  (Read 1072 times)

Shapeshifter878

  • Member
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 29
CreateThing method
« on: 2015-01-15, 06:55:50 »

Wondering a few things about the CreateThing method in CodexWorld.java.

Code: [Select]
CreateThing(String templateName, float origin[], float orient[]);
I suppose "origin" and "orient" is the X,Y,Z and Pitch, Yaw, Roll values for objects in Things and templates in Embrace?

I have yet to find the method in the SP scripts so I think I need an explanation of how to send the creation numbers properly to the float[] origin and float[] orient arrays.

Code: [Select]
CodexWorld.CreateThing("Zombu", xxx, xxx);
Thanks.



Logged

Javokis

  • Horses Dick
  • Member
  • *****
  • Karma: 21
  • Offline Offline
  • Posts: 2373
    • E-Mods.net
Re: CreateThing method
« Reply #1 on: 2015-01-15, 09:15:40 »

We don't use that command. We use SpawnThing or SpawnThingNear from the CodexThing class... hence why you can't find CreateThing.

http://e-mods.net/nodsdk/CodexDocs/CodexThing.html#SpawnThing(java.lang.String)

When you search "SpawnThing" in the project scripts, you'll see much more examples of its use.
« Last Edit: 2015-01-15, 09:21:49 by Javokis »
Logged
"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo
 

Page created in 0.059 seconds with 19 queries.