Guide to Portal Gun EventsPlayer::
setPortalGun - Use this on a player in a minigame to disable certain functions of the player's Portal Gun for challenges e.g. the pickup mode or orange portals.
Player::
clearPortals - Clears the portals a player has created. This could be used like a "Fizzler" in the game.
Brick::
setAsPortalLink - When a player's Orange portal is disabled by
setPortalGun, their blue portal will link to ones created by the brick this event applies to e.g.:
onActivate -> self -> spawnProjectile -> Portal (orange) [somewhere]
onActivate -> Player -> setPortalGun -> BlueOnly
onActivate -> self -> setAsPortalLink
On clicking the brick, the player will only be able to fire blue portals, which link to the orange portal that is created. You can use this with <NAMED BRICK> to set a different brick as the link. (e.g. walk into a room and your gun links with a different brick's portal) This only works in a minigame.
Brick::
clearPortalLink - The current player's portal no longer links with a brick. (e.g. walk into a corridor, your portal stops linking with one in the last room before you reach the next room)
Brick::
setAntiPortal - Sets the current brick as "portal-proof" or not. (Players can't place portals on it) Bricks from the Anti-Portal category are always portal-proof.
The following error or errors occurred while posting this message:
Warning - while you were typing 2 new replies have been posted. You may wish to review your post.Ohhh, there are two different Gravity Guns?
Yes. The other one on the forum is from v8 (originally by SolarFlare), which doesn't have the needed functions for the Portal Gun to work. (His is Weapon_GravGun, mine is Weapon_GravityGun so it doesn't conflict)