Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Nymphodora), 490 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
accessing model properties #294686
10/20/09 16:13
10/20/09 16:13
Joined: Oct 2009
Posts: 20
V
vasco Offline OP
Newbie
vasco  Offline OP
Newbie
V

Joined: Oct 2009
Posts: 20
I have few models created in WED say m1, m2.
How can I access their properties like x,y,z co-ordinates ( world co-ords) from my WDL script ?

Last edited by vasco; 10/20/09 16:16.
Re: accessing model properties [Re: vasco] #294691
10/20/09 16:30
10/20/09 16:30
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline
Senior Member
MPQ  Offline
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
you cannot move level blocks unless you export your model to a mdl file (File --> Export --> export mdl7) or you use your wmp-level as a map entity.


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: accessing model properties [Re: MPQ] #294692
10/20/09 16:32
10/20/09 16:32
Joined: Oct 2009
Posts: 20
V
vasco Offline OP
Newbie
vasco  Offline OP
Newbie
V

Joined: Oct 2009
Posts: 20
Thanks..
Yes, they are MDL files. How can i access them ?

Re: accessing model properties [Re: vasco] #294699
10/20/09 17:13
10/20/09 17:13
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Code:
ENTITY* e1;
function fn() {
	// assuming that "m1" is the ("WED-assigned") name of some ENTITY placed in WED 
	//...and ENTITY "m1" is present in the currently loaded level
	e1 = ent_for_name("m1");
	if (e1 != NULL) {
		e1.x += 5;
		e1.y -= 5;
	}
}


see manual entry for term "ent_for_name"

Re: accessing model properties [Re: testDummy] #294952
10/22/09 07:00
10/22/09 07:00
Joined: Oct 2009
Posts: 20
V
vasco Offline OP
Newbie
vasco  Offline OP
Newbie
V

Joined: Oct 2009
Posts: 20
how to detect the fall of a ball over the ground(block)??? can it be done using z- coordinate comparison ? can u give me a sample code ?

Re: accessing model properties [Re: vasco] #294962
10/22/09 08:34
10/22/09 08:34
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
u can check that through the collision event triggers or comparing z-coordinates.

if u using c-move, then u can check the event trigger. if u using physics, then use z-cordinates to check.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook

Gamestudio download | chip programmers | 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