Zzmurf Posted August 6, 2008 Share Posted August 6, 2008 Hi, my first tread :biggrin: Anyway i need some help with a script i get an error when i try to save it:ScriptName aaaskeletdie short doonceref selfref aaatarget begin gamemode if ( doonce == 0 ) set self to GetSelf kill set doonce to 1self.moveTo [aaatarget]endifEndThe error is about aaatarget variable, its a global var and i use this script to set it to an object ref:Scriptname aaaagreengoblin ref aaatarget Begin ScriptEffectStart set GetActionRef to aaatarget Placeatme AaDeadSkeleton 1 0 1 kill aaatargetDisable End Thanks for any answers // Zzmurf Link to comment Share on other sites More sharing options...
Vagrant0 Posted August 6, 2008 Share Posted August 6, 2008 Globals can only store floats. They do not work for references, and since you are using placeatme, you don't need to use moveto, so technically, the script on the creature isn't needed. Just make the base creature have a max health of 0, or make a simple script which just kills the creature onload. Link to comment Share on other sites More sharing options...
Zzmurf Posted August 6, 2008 Author Share Posted August 6, 2008 Globals can only store floats. They do not work for references, and since you are using placeatme, you don't need to use moveto, so technically, the script on the creature isn't needed. Just make the base creature have a max health of 0, or make a simple script which just kills the creature onload. Well the problem is that when im using placeatme the creature doesen't appear at the exact location of the actor that i cast the spell on. And that is what i was trying to accomplish. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.