Editing
Play - VisualEffect
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[Category:Scripting]] [[Category:Papyrus]] '''Member of:''' [[VisualEffect Script]] Plays this visual effect on the object for the specified duration in seconds - possibly facing the second object. == Syntax == <syntaxhighlight lang="papyrus"> Function Play(ObjectReference akObject, float afTime = -1.0, ObjectReference akFacingObject = None) native </syntaxhighlight> == Parameters == *akObject: The object to play the effect on. *afTime: How long to play the effect for, in seconds. If time is negative, the effect will play until told to stop. **'''Default''': -1.0 *akFacingObject: What object the effect should face. Only works on effects that can be facing other objects. **'''Default''': None == Return Value == None. == Examples == <syntaxhighlight lang="papyrus"> ; Play the soul-sucking effect on the werewolf until told to stop SoulSucking.Play(Werewolf) </syntaxhighlight> <br/> <syntaxhighlight lang="papyrus"> ; Play the soul-sucking effect on the werewolf - pointing it at the human SoulSucking.Play(Werewolf, akFacingObject = Human) </syntaxhighlight> == Notes == *The effects created by this function stack, so using it multiple times without stopping may cause frame rate issues. == See Also == *[[VisualEffect Script]] *[[Stop - VisualEffect]]
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values