Help - Search - Members - Calendar
Full Version: Need some scripting help.
The Nexus Forums > Specific Games > Oblivion > Oblivion Modifications > Mod Troubleshooting
Zzmurf
Hi, my first tread biggrin.gif

Anyway i need some help with a script i get an error when i try to save it:
ScriptName aaaskeletdie

short doonce
ref self
ref aaatarget

begin gamemode

if ( doonce == 0 )

set self to GetSelf

kill
set doonce to 1
self.moveTo [aaatarget]
endif
End
The 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 aaatarget
Disable

End

Thanks for any answers // Zzmurf
Vagrant0
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.
Zzmurf
QUOTE(Vagrant0 @ Aug 6 2008, 12:46 PM) *
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.