Answered Changing AI

WECoyote99

Veteran
Messages
58
Reaction score
4
Points
783
So I decided to add Dogs to all the maps in BO2 and I did but cant change the Ai or model to Zombie wolf any ideas
 

ProlixUK

Known Member
Messages
100
Reaction score
49
Points
128
if(level.script == "zm_transit")
{
// set model to wolf here, because its in the map tranzit
}
else if(level.script=="tomb_zm")
{
// the dog is not in this map, so you would put another model, better still only put the function in the map transit so theirs no confusion.
}
 

thahitcrew

Modder
Messages
219
Reaction score
211
Points
163
if(level.script == "zm_transit")
{
// set model to wolf here, because its in the map tranzit
}
else if(level.script=="tomb_zm")
{
// the dog is not in this map, so you would put another model, better still only put the function in the map transit so theirs no confusion.
}
Use the ternary operator, It'll save space :wink:
PHP:
self.StoreModel = (level.script == "zm_transit")?"enter_wolf_model_here":"wolf_doesnt_exist_enter_different_model";
 
Top