Re: Simple question - entity orientation

Hi joseph,
I was intrigued by this so I did some tests. First I tried a similar format to yours:
ID = System.SpawnEntity({class = "CurrentName", orientation = {x = 1, y = 0, z = 0.1}});

This fails, more specifically it causes my application (spawning an aircraft) to fail badly.
I then tried this variation:

local params = {class=CurrentName, orientation = {x = 1, y = 0, z = 0.1}};
ID = System.SpawnEntity(params);

This works perfectly! I have always used this variation, more from luck than by judgement! The first should work, but it may fail due to a problem with SpawnEntity.
So, this confirms that it does use vectors, and you should be able to make it work using the second variation.
Note, I'm using the free SDK (CE3) but it should be the same in CE5.

Who is online

Users browsing this forum: No registered users and 3 guests