Gamestudio Links
Zorro Links
Newest Posts
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (VoroneTZ, TipmyPip), 9,297 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Jota, krishna, DrissB, James168, Ed_Love
19169 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
WED's add position #167444
11/14/07 21:20
11/14/07 21:20
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
When adding a position in WED, how can I retrieve the position and angle/direction of this position. c_scan returns just the position by my knowledge, not the angle. And what is the purpose of the Start and Name parameters in the WED position properties window anyway and how to retrieve them?

Does c_scan's 'target' get the camera position? Will 'you' hold a pointer to a newly defined view made from the properties of the position (angles, position, name)? I guess none of the output but 'target' is set by c_scan when a position is found. If that is true, I think this should be implemented to make this position option really usefull. It's sure alot more clean to use than entities, and it really gets nice when you don't need c_scan anymore, but an array that is build holding the positions in WED which can be accessed by script.

Would be good if theres an more extensive explaination in the manual as well.


Click and join the 3dgs irc community!
Room: #3dgs
Re: WED's add position [Re: Joozey] #167445
11/14/07 23:41
11/14/07 23:41
Joined: Aug 2003
Posts: 7,440
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,440
Red Dwarf
Normally, you should access that "position" like a view or entity, not so sure right now. Anyway, if you called the position in wed "myPosition" you should be able to access it via

myPosition.pan
myPosition.roll
myPosition.tilt

though, I am not sure right now - just off my mind...


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Re: WED's add position [Re: Michael_Schwarz] #167446
11/15/07 00:05
11/15/07 00:05
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Sadly, this wont work the compiler doesn't recognize the names.


Click and join the 3dgs irc community!
Room: #3dgs
Re: WED's add position [Re: Joozey] #167447
11/15/07 01:32
11/15/07 01:32
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Isn“t ent_for_name an option for that?

Quote:


ent_for_name (STRING* name);
Returns a pointer to the entity with the given WED name. Names can be assigned to entities through [Properties] in WED. This way, entities placed in a level can be accessed in functions even if they have no action themselves.





no science involved
Re: WED's add position [Re: fogman] #167448
11/15/07 02:18
11/15/07 02:18
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
I thought that function would solve it all, but it appears that I can not assign the returning pointer to any of the existing types; no view, no entity, no nothing . No idea if it could work with a homecooked struct, but all my attempts failed.


Click and join the 3dgs irc community!
Room: #3dgs
Re: WED's add position [Re: Joozey] #167449
11/19/07 09:28
11/19/07 09:28
Joined: Jul 2000
Posts: 28,028
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,028
Frankfurt
No, angles can not be retrieved by c_scan. You could use a path or place pseudo entities when you need more information than just positions.


Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1