Jump to content

Very confusing problems with monsterAi and leadwerks in general


Slastraf
 Share

Recommended Posts

http://www.mediafire.com/download/13drm2j8i14ydin/SlastrafProject.rar

I am sorry if you are confused a bit but explaining all would be too much for me, just download my project folder and you will understand everything fast (if you want to help me).

 

I want to make a tower defense game, where crawlers spawn on the map and attack the tower.

When you open the level01 map, basically nothing spawns (everything configurated right).

when you open the start map , the crawlers spawn, run for a bit towards the player, and then an error caused because the program couldnt find the target (player) in the monsterai script(

GetPosition: a nil value).

The last should not be happening, however I dont know why there is a problem with the Target since its assigned.

 

But not looking at that I added self:SpawnEnemy(1,1) in the start function of the zombieSpawner script,

and in the SpawnerUpdate function only for testing both options of spawning a crawler

Both dont seem to do anything in the level01 map.

 

PM: shooting isnt implemented in the downloadable project , as well as getting hit.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...