Skip to content
User Avatar
#4352
Auto-translated
Jack_of_shadows
Everything that exists in a campaign can be done on any map. You need to assign a script name to the catapult (for example, 'catapult'), and then rotate it (if needed):
SetObjectRotation('catapult', ANGLE);
To fire:
PlayObjectAnimation('catapult', 'rangeattack', ONESHOT);
Explosion upon impact:
PlayVisualEffect('/Effects/_(Effect)/Spells/FireBallHit.xdb#xpointer(/Effect)', '', '', X, Y, 1, 0, GROUND);
Play2DSound('/Sounds/_(Sound)/Spells/FireBallHit.xdb#xpointer(/Sound)');


I think you should use the CheckOwner() function (or something similar, which checks the owner of the object) and call it in a thread, or after battles, or on a new day trigger.

Thank you;)

Statistics

Welcome our newest member: leyu