in my map I've created an encounter that spawns a bunch of monsters.
I've also created a script that when a monster is killed, it yields an amount of experience points for the player.
Obviously, i had no problem assigning the monsters all ready present on the map to the script.
But i dont' know how to assign these "spawned in monsters" that were not previously present on the map when it opened to the script i want.
So these newly spawned monsters are not giving the player xp.
I'm using "Thing_spawnFacing();" to spawn the monsters via map spots.
This is the script that I've assigned all the all ready present monsters on the map to in order to yield xp upon death. "playerXp" is an int variable and starts out at 0 upon the map opening.
Question
Raheem
in my map I've created an encounter that spawns a bunch of monsters.
I've also created a script that when a monster is killed, it yields an amount of experience points for the player.
Obviously, i had no problem assigning the monsters all ready present on the map to the script.
But i dont' know how to assign these "spawned in monsters" that were not previously present on the map when it opened to the script i want.
So these newly spawned monsters are not giving the player xp.
I'm using "Thing_spawnFacing();" to spawn the monsters via map spots.
This is the script that I've assigned all the all ready present monsters on the map to in order to yield xp upon death. "playerXp" is an int variable and starts out at 0 upon the map opening.
Thanks in advance :)
Share this post
Link to post
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.