Background for Starfield
Member of the Actor script
eventOnPlayerModRobot(ActorakRobot, ObjectModakModBaseObject)

Description

Wiki Description

Event send to the player when he modifies a robot

Documentation Comment

Received when the player mods a robot


Parameters

  1. ActorakRobot

    CK Wiki Description

    the robot that was modified

  2. ObjectModakModBaseObject

    CK Wiki Description

    the base object used to do the modification


Examples

; Event is sent to the player
Event OnPlayerModRobot(Actor akRobot, ObjectMod akModBaseObject)
  Debug.Trace(akRobot + " modified with " + akModBaseObject)
endEvent
Scriptname myExampleScript extends Quest

Event OnInit()
  RegisterforRemoteEvent(Game.GetPlayer(), "OnPlayerModRobot") ; listening for OnPlayerModRobot event
  Debug.Trace(self + " Actor.OnPlayerModRobot ", " Script is initialized and Robot Event Started. " )
EndEvent

Event Actor.OnPlayerModRobot(Actor akSender, Actor akRobot, ObjectMod akModBaseObject)
  Debug.Trace(self + "Actor.OnPlayerModRobot ", " Player Modified Robot ")
  ; do something cool here
EndEvent

Auto-Generated Example

Scriptname MyCoolScript extends Actor

event OnPlayerModRobot(Actor akRobot, ObjectMod akModBaseObject)
    Debug.trace("Event received - OnPlayerModRobot: akRobot = " + akRobot + " akModBaseObject = " + akModBaseObject)
endEvent

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.