DrDanix Posted February 2, 2012 Share Posted February 2, 2012 Hi,I'm trying to make a mod but I have some problem with scripts.What I'll have to write in a script of a NPC, if I want that NPC respawn immediately, but it has 50% chance to happen?Thanks Ps: sorry for my bad english, I'm swiss. Link to comment Share on other sites More sharing options...
viennacalling Posted February 2, 2012 Share Posted February 2, 2012 Try to take some time and study the G.E.C.K. web site. It will give you more answers than this forum ever will. This is not the complete script, only part of what you need: short rnd ; inside whatever block set rnd to GetRandomPercent if rnd < 50 ;put whatever you want to happen to your NPC here endif Reference: GetRandomPercent Link to comment Share on other sites More sharing options...
Recommended Posts