Changing mapmodels and factions by triggers
Posted: October 10th, 2011, 7:02 pm
I was wondering if it was possible to change mapmodel numbers and factions by triggers.
The reason for changing mapmodels was so that the creature would "respawn". I was thinking if it was possible to place a bunch of invisble map models with numbers of -1 or less and then when a trigger is triggered, it would change the mapmodel number from -1 to the number of the creature.
Another way I was thinking of doing this was by putting the change mapmodel number code into the r_destroy command, so that when the creature is killed, it will change the mapmodel number to -1 and then sleep for 30000 milliseconds, then change the mapmodel number back to the creature's original number.
Also, I wanted to know if I could do the same thing with factions, so that I can have friendly creatures like in runescape. So that they only attack you when you attack them. If there was a way to code it so that the faction would be the same as yours and then when you attack it, it changes the faction to the enemies.
Thanks,
CEO of Vulcanis Entertainment,
Addis Regassa
The reason for changing mapmodels was so that the creature would "respawn". I was thinking if it was possible to place a bunch of invisble map models with numbers of -1 or less and then when a trigger is triggered, it would change the mapmodel number from -1 to the number of the creature.
Another way I was thinking of doing this was by putting the change mapmodel number code into the r_destroy command, so that when the creature is killed, it will change the mapmodel number to -1 and then sleep for 30000 milliseconds, then change the mapmodel number back to the creature's original number.
Also, I wanted to know if I could do the same thing with factions, so that I can have friendly creatures like in runescape. So that they only attack you when you attack them. If there was a way to code it so that the faction would be the same as yours and then when you attack it, it changes the faction to the enemies.
Thanks,
CEO of Vulcanis Entertainment,
Addis Regassa