# Create Effect At Point (From Player)

Grammar — Execute effect at point from player caster
FlagsNative | Action

Runs an effect, targeting the specified point. This effect will not have a caster unit.

# Arguments

  • int — Player
  • string [ gamelink::Effect ] — Effect
  • point — Point

Returns — void

native void PlayerCreateEffectPoint(
	int inPlayer,
	string inEffect,
	point inTarget,
);

Category: Environment / Effects

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L1132
PlayerCreateEffectPoint(1, "WallOfFireDummy", Point(PointGetX(UnitGetPosition(gv_wALLOFFIRE)), ((IntToFixed(lv_i) * 3.5) + PointGetY(PointFromId(122)))))
// L9915
PlayerCreateEffectPoint(gv_p1_USER, "NukeDamage", PointFromId(2182))
// L10700
PlayerCreateEffectPoint(gv_p1_USER, "NukeDamage", PointFromId(22))
// L11671
PlayerCreateEffectPoint(gv_p1_USER, "NukeDamage", PointFromId(2222))
// L1132
PlayerCreateEffectPoint(1, "WallOfFireDummy", Point(PointGetX(UnitGetPosition(gv_wALLOFFIRE)), ((IntToFixed(lv_i) * 3.5) + PointGetY(PointFromId(122)))))
// L9915
PlayerCreateEffectPoint(gv_p1_USER, "NukeDamage", PointFromId(2182))
// L10700
PlayerCreateEffectPoint(gv_p1_USER, "NukeDamage", PointFromId(22))
// L11671
PlayerCreateEffectPoint(gv_p1_USER, "NukeDamage", PointFromId(2222))
// L406
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION, "EvoNukeDetonate", lp_location)
// L2095
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION, "EvoNukeDetonate", RegionGetCenter(RegionFromId(24)))
// L5826
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "FungalGrowthInitialSet", RegionRandomPoint(RegionCircle(UnitGetPosition(gv_eggNests[RandomInt(1, 6)].lv_eggNest), 1.0)))
// L899
PlayerCreateEffectPoint(gv_pLAYER_02_WARFIELDOutpost, "NukeDetonate", lp_cHOSEN_POINT)
// L951
PlayerCreateEffectPoint(gv_pLAYER_02_WARFIELDOutpost, "NukeDetonate", lp_cHOSEN_POINT)
// L4663
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", PointWithOffsetPolar(CameraGetTarget(gv_pLAYER_01_USER), RandomFixed(2.0, 13.0), libNtve_gf_RandomAngle()))
// L4666
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", RegionRandomPoint(RegionCircle(PointFromId(837), 6.0)))
// L4670
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", RegionRandomPoint(RegionCircle(PointFromId(935), 6.0)))
// L4703
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", PointWithOffsetPolar(CameraGetTarget(gv_pLAYER_01_USER), RandomFixed(2.0, 13.0), libNtve_gf_RandomAngle()))
// L4706
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", RegionRandomPoint(RegionCircle(PointFromId(837), 6.0)))
// L4710
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", RegionRandomPoint(RegionCircle(PointFromId(936), 6.0)))
// L5423
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "EnergyNovaPersistent", RegionGetCenter(RegionFromId(75)))
// L9354
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "EnergyNovaPersistent", RegionGetCenter(RegionFromId(75)))
// L3050
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "ZergDropPodCrashing", RegionRandomPoint(RegionFromId(7)))
// L3059
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "SpaceMeteor", lv_point)
// L1059
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION2, "KraithFallingRocksPersistent", RegionRandomPoint(RegionFromId(122)))
// L1069
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION2, "KraithFallingRocksPersistent", RegionRandomPoint(RegionFromId(122)))
// L1081
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION2, "KraithFallingRocksPersistent", RegionRandomPoint(RegionFromId(37)))
// L1091
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION2, "KraithFallingRocksPersistent", RegionRandomPoint(RegionFromId(37)))
// L406
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION, "EvoNukeDetonate", lp_location)
// L2095
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION, "EvoNukeDetonate", RegionGetCenter(RegionFromId(24)))
// L5826
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "FungalGrowthInitialSet", RegionRandomPoint(RegionCircle(UnitGetPosition(gv_eggNests[RandomInt(1, 6)].lv_eggNest), 1.0)))
// L899
PlayerCreateEffectPoint(gv_pLAYER_02_WARFIELDOutpost, "NukeDetonate", lp_cHOSEN_POINT)
// L951
PlayerCreateEffectPoint(gv_pLAYER_02_WARFIELDOutpost, "NukeDetonate", lp_cHOSEN_POINT)
// L4663
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", PointWithOffsetPolar(CameraGetTarget(gv_pLAYER_01_USER), RandomFixed(2.0, 13.0), libNtve_gf_RandomAngle()))
// L4666
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", RegionRandomPoint(RegionCircle(PointFromId(837), 6.0)))
// L4670
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", RegionRandomPoint(RegionCircle(PointFromId(935), 6.0)))
// L4703
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", PointWithOffsetPolar(CameraGetTarget(gv_pLAYER_01_USER), RandomFixed(2.0, 13.0), libNtve_gf_RandomAngle()))
// L4706
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", RegionRandomPoint(RegionCircle(PointFromId(837), 6.0)))
// L4710
PlayerCreateEffectPoint(gv_pLAYER_05_WARFIELDCitadel, "ScannerSweep", RegionRandomPoint(RegionCircle(PointFromId(936), 6.0)))
// L5423
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "EnergyNovaPersistent", RegionGetCenter(RegionFromId(75)))
// L9354
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "EnergyNovaPersistent", RegionGetCenter(RegionFromId(75)))
// L3050
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "ZergDropPodCrashing", RegionRandomPoint(RegionFromId(7)))
// L3059
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "SpaceMeteor", lv_point)
// L1059
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION2, "KraithFallingRocksPersistent", RegionRandomPoint(RegionFromId(122)))
// L1069
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION2, "KraithFallingRocksPersistent", RegionRandomPoint(RegionFromId(122)))
// L1081
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION2, "KraithFallingRocksPersistent", RegionRandomPoint(RegionFromId(37)))
// L1091
PlayerCreateEffectPoint(gv_pLAYER_02_DOMINION2, "KraithFallingRocksPersistent", RegionRandomPoint(RegionFromId(37)))
// L8779
PlayerCreateEffectPoint(gv_p01_USER, "ScannerSweep", PointFromId(47))
// L2067
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "TaurenOutHouseCrash", lv_taurenOuthouseCrashTargetPoint)
// L2069
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "NukeDamage", PointFromId(2108))
// L3989
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "SOAOrbitalStrikeCP", lv_targetPoint[1][lv_i])
// L3995
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "SOAOrbitalStrikeCP", lv_targetPoint[2][lv_i])
// L4002
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "SOAOrbitalStrikeCP", lv_targetPoint[3][lv_i])
// L5912
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "KerriganVoidApocalypseInitialSet", PointFromId(1058))
// L8779
PlayerCreateEffectPoint(gv_p01_USER, "ScannerSweep", PointFromId(47))
// L2067
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "TaurenOutHouseCrash", lv_taurenOuthouseCrashTargetPoint)
// L2069
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "NukeDamage", PointFromId(2108))
// L3989
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "SOAOrbitalStrikeCP", lv_targetPoint[1][lv_i])
// L3995
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "SOAOrbitalStrikeCP", lv_targetPoint[2][lv_i])
// L4002
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "SOAOrbitalStrikeCP", lv_targetPoint[3][lv_i])
// L5912
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "KerriganVoidApocalypseInitialSet", PointFromId(1058))

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L890
PlayerCreateEffectPoint(1, "SOATimeFreezeVisual", Point(lp_cameraPOSX, lp_cameraPOSY))

# mods/heroesbrawlmods/arenamodemods/gardenarena.stormmod

LibAMGT.galaxy

// L277
PlayerCreateEffectPoint(libCore_gv_cOMPUTER_Neutral, "PlantHorrorSpawnSeeds", lp_location)
// L280
PlayerCreateEffectPoint(libCore_gv_cOMPUTER_Neutral, "PlantHorrorSpawnSeedsSingleFar", lp_location)
// L286
PlayerCreateEffectPoint(libCore_gv_cOMPUTER_Neutral, "PlantHorrorSpawnSeedsSingleClose", lp_location)

# mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmod

LibMDoE.galaxy

// L3102
PlayerCreateEffectPoint(lv_computerPlayer, "DropCannonballsPersistent", lv_spawnLocation)

# mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod

LibLNYF.galaxy

// L1043
PlayerCreateEffectPoint(15, "RaceBrawl_Crowd_Walla", Point(0.0, 0.0))
// L1076
PlayerCreateEffectPoint(15, "LunarFestivalCreateEnvelopeStand", libLNYF_gv_envelopes.lv_spawnLocation[lv_i])
// L1209
PlayerCreateEffectPoint(15, "RaceBrawl_Crowd_GameStart", Point(0.0, 0.0))

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L24310
PlayerCreateEffectPoint(UnitGetOwner(EventPlayerEffectUsedUnit(c_effectUnitCaster)), "WitchDoctorZombieWallDeathSoundPersistent", lv_soundPoint)

# mods/heroesdata.stormmod

GameLib.galaxy

// L17379
PlayerCreateEffectPoint(lv_deadPlayer, "DiabloBlackSoulstoneResurrectDummyPersistent", libNtve_gf_PointWithZOffset(lv_deadUnitsOriginalLocation, 2.0))

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L1822
PlayerCreateEffectPoint(libCore_gv_cOMPUTER_Neutral, "DropCannonballsPersistent", libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampCaptainSpawnPoint)
// L1827
PlayerCreateEffectPoint(libCore_gv_cOMPUTER_Neutral, "DropCannonballsPersistent", libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampCaptainSpawnPoint)

# mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmod

LibBBAY.galaxy

// L1272
PlayerCreateEffectPoint(libCore_gv_cOMPUTER_Neutral, "DropCannonballsPersistent", lv_spawnLocation)
// L1638
PlayerCreateEffectPoint(libCore_gv_cOMPUTER_Hostile, "DropCannonballsPersistentJungleCamps", libMapM_gv_jungleCreepCamps[lv_campIndex].lv_mapDataCampCaptainSpawnPoint)

# mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod

LibSCHO.galaxy

// L2514
PlayerCreateEffectPoint(lp_dropPodOwner, "BraxisDropPodCreatePersistent", lp_dropPodPosition)

# mods/heroesmapmods/battlegroundmapmods/gardenofterror.stormmod

LibGRDN.galaxy

// L304
PlayerCreateEffectPoint(libGame_gf_ComputerPlayerInTeam(lv_winningTeam), "GardenTerrorSpawnExplosionDummy", libGRDN_gv_seedSpawns[libGRDN_gv_currentSeedSpawnLocation].lv_point)

# mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod

LibMHtM.galaxy

// L580
PlayerCreateEffectPoint(libCore_gv_cOMPUTER_Neutral, "DropUnderworldPowerupPersistentLargeArea", lp_location)
// L2588
PlayerCreateEffectPoint(libCore_gv_cOMPUTER_Neutral, "DropUnderworldPowerupPersistentLargeArea", CameraGetTarget(1))

# mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmod

LibMSOC.galaxy

// L420
PlayerCreateEffectPoint(libGame_gf_ComputerPlayerInTeam(libGame_gf_TeamNumberOfPlayer(lp_soulOwner)), lv_dropEffect20, lp_location)
// L424
PlayerCreateEffectPoint(libGame_gf_ComputerPlayerInTeam(libGame_gf_TeamNumberOfPlayer(lp_soulOwner)), lv_dropEffect5, lp_location)
// L428
PlayerCreateEffectPoint(libGame_gf_ComputerPlayerInTeam(libGame_gf_TeamNumberOfPlayer(lp_soulOwner)), lv_dropEffect1, lp_location)

# mods/heroesmapmods/battlegroundmapmods/volskayasound.stormmod

LibVLSS.galaxy

// L119
PlayerCreateEffectPoint(0, "Doodad_Volskaya_CapturePoint_Active", RegionGetCenter(lv_captureRegion))

# mods/liberty.sc2mod

LibertyLib.galaxy

// L258
PlayerCreateEffectPoint(lp_player, lp_beaconEffect, lp_location)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L663
PlayerCreateEffectPoint(1, "FX_DOM_CeilingDebris_Beams", PointFromName(("Destruction Fire " + IntToString(lp_area) + "-" + IntToString(lv_i))))
// L666
PlayerCreateEffectPoint(1, "FX_DOM_CeilingDebris_Concrete", PointFromName(("Destruction Fire " + IntToString(lp_area) + "-" + IntToString(lv_i))))
// L716
PlayerCreateEffectPoint(1, "FX_DOM_CeilingDebris_Beams", RegionRandomPoint(RegionFromName(("Destruction " + IntToString(lp_area)))))
// L719
PlayerCreateEffectPoint(1, "FX_DOM_CeilingDebris_Concrete", RegionRandomPoint(RegionFromName(("Destruction " + IntToString(lp_area)))))
// L754
PlayerCreateEffectPoint(1, "FX_DOM_Explosion_Large", lp_point)
// L758
PlayerCreateEffectPoint(1, "FX_DOM_Explosion_Medium", lp_point)
// L2100
PlayerCreateEffectPoint(gv_pLAYER_02_REIGEL, "ScannerSweep", PointFromId(381))
// L2102
PlayerCreateEffectPoint(gv_pLAYER_02_REIGEL, "ScannerSweep", PointFromId(382))
// L663
PlayerCreateEffectPoint(1, "FX_DOM_CeilingDebris_Beams", PointFromName(("Destruction Fire " + IntToString(lp_area) + "-" + IntToString(lv_i))))
// L666
PlayerCreateEffectPoint(1, "FX_DOM_CeilingDebris_Concrete", PointFromName(("Destruction Fire " + IntToString(lp_area) + "-" + IntToString(lv_i))))
// L716
PlayerCreateEffectPoint(1, "FX_DOM_CeilingDebris_Beams", RegionRandomPoint(RegionFromName(("Destruction " + IntToString(lp_area)))))
// L719
PlayerCreateEffectPoint(1, "FX_DOM_CeilingDebris_Concrete", RegionRandomPoint(RegionFromName(("Destruction " + IntToString(lp_area)))))
// L754
PlayerCreateEffectPoint(1, "FX_DOM_Explosion_Large", lp_point)
// L758
PlayerCreateEffectPoint(1, "FX_DOM_Explosion_Medium", lp_point)
// L2100
PlayerCreateEffectPoint(gv_pLAYER_02_REIGEL, "ScannerSweep", PointFromId(381))
// L2102
PlayerCreateEffectPoint(gv_pLAYER_02_REIGEL, "ScannerSweep", PointFromId(382))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L7225
PlayerCreateEffectPoint(lp_castingPlayer, "SOATimeFreezeVisual", Point(PointGetX(CameraGetTarget(lp_castingPlayer)), PointGetY(CameraGetTarget(lp_castingPlayer))))