Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: DeleteEntity nefunguje..  (Read 2717 times)

0 Members and 1 Guest are viewing this topic.

!Errorcode!

  • Loader software
  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • www.loadersoftware.szm.com
    • View Profile
    • LOADER software
DeleteEntity nefunguje..
« on: January 29, 2013, 12:12:06 AM »

Code: [Select]
o1 = Game.LoadEntity("objekty\o1\o1.entity");
o1.active = true;
o1.SkipTo(505, 280);
Code: [Select]
on "predmet1"
{
  Game.DeleteEntity(o1); //sk????al som aj UnloadObject
}
Logged

!Errorcode!

  • Loader software
  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • www.loadersoftware.szm.com
    • View Profile
    • LOADER software
Re: DeleteEntity nefunguje..
« Reply #1 on: January 31, 2013, 05:53:35 PM »

Logged

logarithm

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • View Profile
Re: DeleteEntity nefunguje..
« Reply #2 on: February 01, 2013, 12:45:53 PM »

EDIT: Ospravedl??ujem sa, neuvedomil som si jednu vec. K??d som u?? opravil!

scene_init.script
Code: WME Script
  1. global StateFront;
  2. global entPacman;
  3.  
  4. if(StateFront==null)
  5. {
  6.   StateFront.Visited = false;
  7.   StateFront.PacmanBookUsed = false;
  8. }
  9. if(!StateFront.Visited)
  10. {
  11.   StateFront.Visited = true;
  12. }
  13.  
  14. if(StateFront.PacmanBookUsed==false)
  15.   entPacman = Scene.LoadEntity("entities\pacman\pacman.entity");
  16.  

pacman.script
Code: WME Script
  1. #include "scripts\base.inc"
  2.  
  3. global StateFront;
  4. global entPacman;
  5.  
  6. on "book"
  7. {
  8.   StateFront.PacmanBookUsed = true;
  9.   Game.DeleteEntity(entPacman);
  10. }
  11.  
« Last Edit: February 03, 2013, 12:51:24 PM by logarithm »
Logged

!Errorcode!

  • Loader software
  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • www.loadersoftware.szm.com
    • View Profile
    • LOADER software
Re: DeleteEntity nefunguje..
« Reply #3 on: February 01, 2013, 01:05:56 PM »

Logged

logarithm

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • View Profile
Logged

!Errorcode!

  • Loader software
  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • www.loadersoftware.szm.com
    • View Profile
    • LOADER software
Re: DeleteEntity nefunguje..
« Reply #5 on: February 01, 2013, 06:18:40 PM »

Logged
 

Page created in 0.353 seconds with 22 queries.