Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,633 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Levelchange for lite-c? [Re: Deha] #283193
08/06/09 11:56
08/06/09 11:56
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
in the entity action:
Code:
my.emask != ENABLE_IMPACT;
my.event = changemap;



the function ( just example ):
Code:
function changemap()
{
  if(event_type == EVENT_IMPACT )
  {
    // add here the changing code.
  }
}



That´s how an impact / eventtrigger works.. hope it helps..


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Levelchange for lite-c? [Re: Espér] #283250
08/06/09 18:31
08/06/09 18:31
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Yes, assign the action...the collision one, to a object you plan on being the trigger....
*it must not be passable.
*it only works if the object*(player) that impacts it is moving under the influence of c_move and is ALSO not passable.

in the script I posted earlier....
I did forget a terminator,statement end-er thing(semicolon)....";" after my var declaration.
The code works here....although I put it all inside the main function and ditched the external function.

Espér's method is much cleaner, witha small change.

Code:
function level_event(STRING* levelname)
{
        str_cpy(levelname,my.string1);]//now you can set it in med
	str_cat(levelname, ".wmb");
	level_load(levelname);
	wait(3);
	str_cmp(levelname, "");
}
action colider()
{
	my.emask |= ENABLE_IMPACT;
	my.event = impact_event;
	set(my,POLYGON);
}



function main()
{
	...
	level_event("Leveldatei");  // call level without "*.wmb" ending
	...
}



I have not tested it. I thought my way to be more logical to a beginner standpoint...using simple if this then that or else do this.....syntax...it is long winded, but simple.

Last edited by Nowherebrain; 08/06/09 18:37.

Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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