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
[Updated]Invisible AMFP meshes? (And Other Questions)
DeAngelo Offline
Senior Member

Posts: 263
Threads: 26
Joined: Feb 2013
Reputation: 11
#43
RE: Invisible AMFP meshes? (And Other Questions)

(08-14-2014, 10:34 PM)Mudbill Wrote: That looks very clustered. I suggest using the parameter variables. For example use:

PHP Code: (Select All)
void ResetWine(string &in asParentstring &in asChildint alState)
{
    
AddTimer(asParent3"TimerResetWine");
}

void TimerResetWine(string &in asTimer)
{
    
ResetProp(asTimer);


Doing it like this would make the script much shorted but achieve the same. Instead of using absolute names, it will reference to the current value of asParent / asTimer, which at runtime will be the entity currently used to call the events.

Anyway, have you tried, instead of using ResetProp, to use the CreateEntityAtArea? Perhaps you can just create new bottles at defined areas instead? Broken props may not want to reset, as they might be considered non-existant.

I prefer using absolute names as you put it. I know it's cluttered but for some reason having everything laid out as plain as possible makes it easier to work with, even if it does leave me with long ass scripts. Anyway, thanks. I went to bed after posting and my last thoughts were to just use createentityatarea scripts. I should've got up and edited my post lol.

A Late Night Drink http://www.moddb.com/mods/a-late-night-drink
Check out my LP channel, CatBearGaming, I take all Custom Story requests!
08-15-2014, 02:42 AM
Find


Messages In This Thread
RE: Invisible AMFP meshes? - by Artsy - 07-20-2014, 11:36 PM
RE: Invisible AMFP meshes? - by DeAngelo - 07-20-2014, 11:53 PM
RE: Invisible AMFP meshes? - by Daemian - 07-21-2014, 03:32 AM
RE: Invisible AMFP meshes? - by DeAngelo - 07-21-2014, 05:44 AM
RE: Invisible AMFP meshes? - by DeAngelo - 07-22-2014, 08:52 AM
RE: Invisible AMFP meshes? - by Mudbill - 07-22-2014, 11:00 AM
RE: Invisible AMFP meshes? - by Daemian - 07-22-2014, 07:49 PM
RE: Invisible AMFP meshes? - by DeAngelo - 07-22-2014, 08:02 PM
RE: Invisible AMFP meshes? - by Mudbill - 07-22-2014, 09:34 PM
RE: Invisible AMFP meshes? - by DeAngelo - 07-22-2014, 10:37 PM
RE: Invisible AMFP meshes? - by Daemian - 07-23-2014, 12:31 AM
RE: Invisible AMFP meshes? - by Mudbill - 07-23-2014, 01:11 AM
RE: Invisible AMFP meshes? (And Other Questions) - by DeAngelo - 08-15-2014, 02:42 AM



Users browsing this thread: 1 Guest(s)