cod4-sdk/raw/codescripts/character_mp.gsc

16 lines
247 B
Text
Raw Normal View History

2008-01-19 00:00:00 +00:00
setModelFromArray(a)
{
self setModel(a[randomint(a.size)]);
}
precacheModelArray(a)
{
for (i = 0; i < a.size; i++)
precacheModel(a[i]);
}
attachFromArray(a)
{
self attach(codescripts\character::randomElement(a), "", true);
}