Jump to content

Quick Questions, Quick Answers


Mattiewagg

Recommended Posts

  • Replies 2.6k
  • Created
  • Last Reply

Top Posters In This Topic

LocalTimeVar + 1 in your example would be 1 hour, not 1 day, right?

In my example, it would be 1 day. This is because the value stored in the global variable is in days with the decimal part making up the hours, minutes & seconds of any partial day amount.

 

Local Float & Int properties...

They won't reset when you load a save. However, each new instance of an object will maintain its own value, if changed, for the local property variable.

Link to comment
Share on other sites

You can only have one OnUpdate event that runs at a set interval? Any other attempt I make to modify another script's OnUpdate's event will run with the RegisterForSingleUpdate from my other scripts.(I've set it to 5 seconds for example, but it will still run once every 1 seconds like the other scripts.)

Link to comment
Share on other sites

Hello, I'm trying to make a creature use a specified spell when low on hp.

 

So far all I did on the script was this:

 

actor SelfRef
Event OnDying(Actor akKiller)
EndEvent
Now, I'm trying to set up so it casts the spell on the floor and near the caster.
I found this in the list of scripts:
mySpell.cast(myActivator, playerRef)
Ok so, "mySpell" is the name of the spell that the player will see in game right?
myActivator is the actor and PlayerRef is the player of course.
But I don't want the spell to be cast on the player, what should I type?
I'm guessing in the end it will stay like this:
actor SelfRef
Event OnDying(Actor akKiller)
mySpell.cast(myActivator, playerRef)
EndEvent
Help.
Link to comment
Share on other sites

 

Hello, I'm trying to make a creature use a specified spell when low on hp.

 

So far all I did on the script was this:

 

actor SelfRef

 

Event OnDying(Actor akKiller)

 

EndEvent

 

 

Now, I'm trying to set up so it casts the spell on the floor and near the caster.

I found this in the list of scripts:

 

mySpell.cast(myActivator, playerRef)

 

Ok so, "mySpell" is the name of the spell that the player will see in game right?

myActivator is the actor and PlayerRef is the player of course.

 

But I don't want the spell to be cast on the player, what should I type?

 

I'm guessing in the end it will stay like this:

 

actor SelfRef

 

Event OnDying(Actor akKiller)

 

mySpell.cast(myActivator, playerRef)

 

EndEvent

 

Help.

You may want to use OnHit and chdck HP instead.

 

OnDying is called like a second before they die. It's not low health. It's like the game is getting ready to kill them.

Link to comment
Share on other sites

You can have one onupdate event per form or object reference.

If I put these scripts on an Alias or a Quest will that change?

 

This magic effect that I attached to a bear's attacks using a spell lingers permanently on the target the bear attacks, it never dispels itself. I made the duration of the paralysis/effect 1 second in the spell, what the hell is wrong? http://puu.sh/eOVLx/1662d1c28a.png

Edited by Kerberus14
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...