The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some help on setting up an event
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
Need some help on setting up an event

Alright this one's kind of a generic request on how to set up an event I'm trying to script. All the ways that I have tried to approach it haven't worked so far...

[Image: GOhxi.jpg]

The player is approaching from the right, past the barricaded doorway. As soon as he enters the intersection, an enemy comes charging at him from the adjacent hallway. Before he can react, it hits him, and blasts him through the barricade and into the blocked-off hallway.

So far I've got most of the script laid out. I got the PlayerBodyForce to trigger at the instant the player takes damage. However, throwing the player through the barricade is proving more challenging.

If the player only barely enters the area and stops when he gets attacked, he just hits the doorframe and falls down. I tried to solve this by making the ScriptArea more narrow, but then the player can sneak past it without ever triggering the enemy. I also tried teleporting the player to a spot directly in front of the barricade before he receives the body force, but the change in the camera is very obvious.

Anyone have some helpful advice? :/

(This post was last modified: 06-19-2012, 08:49 PM by Damascus.)
06-19-2012, 08:02 AM
Find


Messages In This Thread
Need some help on setting up an event - by Damascus - 06-19-2012, 08:02 AM



Users browsing this thread: 1 Guest(s)